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

  1. /*
  2.                         Control Tower Arexx Script
  3.                            Written By J.L. White
  4.                          (C)1995 Merlin's Software
  5.  
  6. Lines=7
  7. 01=Gradually Apply Mosaic Hook
  8. 02= 
  9. 03=This script loads each image of the File List Window
  10. 04=into ImageFX and Gradually apply the Mosaic Hook over
  11. 05=the length of frames. It divides the total number of
  12. 06=frames by the current frame number * the highest value
  13. 07=of this function to gradually adjust the list.
  14.  
  15. */
  16.  
  17. options results
  18.  
  19. arg FrameNum TotalFiles
  20. address "IMAGEFX.1"
  21.  
  22. Num = ((FrameNum * 50)/(TotalFiles))
  23. if Num < 2 then Num = 2
  24. if Num > 50 then Num = 50
  25. Num = trunc(Num)
  26. Hook Mosaic Num
  27.  
  28.  
  29. exit
  30.