home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Misc / EDG-CT1.DMS / in.adf / CT.run / Scripts2 / 5 / Distort < prev    next >
Encoding:
Text File  |  1995-10-11  |  1.1 KB  |  50 lines

  1. /*
  2.                         Control Tower Arexx Script
  3.                            Written By J.L. White
  4.                          (C)1995 Merlin's Software
  5. Lines=5
  6. 01=Distort
  7. 02= 
  8. 03=This script will load an image into
  9. 04=Image FX and distort the image based
  10. 05=on an image loaded into the Alpha channel.
  11.  
  12. */
  13.  
  14. options results
  15.  
  16. arg FrameNum TotalFiles
  17. address "IMAGEFX.1"
  18.  
  19.  
  20. if FrameNum = 0 then do
  21.     FrameNum = 1
  22.     RequestFile '"Select Image To Use For Alpha Channel!"'
  23.     Pic = Result
  24.     Gadget.1 = 'Select Drawing Operation For Alpha Channel!'
  25.     Gadget.2 = 'Frisket'
  26.     Gadget.3 = 'Texture'
  27.     ListRequest 3 Gadget
  28.     if result = 2 then AlphaChannel Frisket
  29.     if result = 3 then AlphaChannel Texture
  30.     RequestSlider '"Enter Amount Of Distortion To Apply!"' 1 255 32
  31.     Answer = Result
  32.     call open TempFile,"Ram:CT-IFDT",W
  33.     call writeln TempFile,Answer
  34.     call writeln TempFile,Pic
  35.     call close TempFile
  36.     end
  37. else do
  38.     call open TempFile,"Ram:CT-IFDT",R
  39.     line = readln(TempFile)
  40.     parse var line Answer
  41.     line = readln(TempFile)
  42.     parse var line Pic
  43.     call close TempFile
  44.     end
  45.  
  46. LoadAlpha Pic Force Smooth
  47. Distort Answer
  48.  
  49. exit
  50.