home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Misc / EDG-CT1.DMS / in.adf / CT.run / Scripts2 / 5 / Gradually_Emboss_Image < prev    next >
Encoding:
Text File  |  1995-10-16  |  972 b   |  44 lines

  1. /*
  2.                         Control Tower Arexx Script
  3.                            Written By J.L. White
  4.                          (C)1995 Merlin's Software
  5. Lines=7
  6. 01=Gradually Emboss Image
  7. 02= 
  8. 03=This script loads each image of the File List Window
  9. 04=into ImageFX and Gradually emboss each image over
  10. 05=the length of frames. It divides the total number of
  11. 06=frames by the current frame number * the highest value
  12. 07=of this function to gradually adjust the list.
  13.  
  14. */
  15.  
  16. options results
  17.  
  18. arg FrameNum TotalFiles
  19. address "IMAGEFX.1"
  20.  
  21.  
  22. if FrameNum = 0 then do
  23.     FrameNum = 1
  24.     NumA = 0
  25.     NumB = 7
  26.     NumC = 0
  27.     RequestSlider '"Enter Light Position (1 = 12:00 5 = 6:00)!"' NumA NumB NumC
  28.     call open TempFile,"Ram:CT-IFGE",W
  29.     call writeln TempFile,Answer
  30.     call close TempFile
  31.     end
  32. else do
  33.     call open TempFile,"Ram:CT-IFGE",R
  34.     line = readln(TempFile)
  35.     parse var line Answer
  36.     call close TempFile
  37.     end
  38. Num = ((FrameNum * 256)/(TotalFiles))
  39. Num = trunc(Num)
  40.  
  41. ReliefMap Num Answer
  42.  
  43. exit
  44.