home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Misc / EDG-CT1.DMS / in.adf / CT.run / Scripts2 / 5 / Gradually_Apply_Straw_Hook < prev    next >
Encoding:
Text File  |  1995-10-16  |  700 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 Straw Hook
  8. 02= 
  9. 03=This script loads each image of the File List Window
  10. 04=into ImageFX and Gradually apply the Straw 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 Num TotalNum
  20. address "IMAGEFX.1"
  21.  
  22. if Num = 0 then Num = 1
  23. NewNum = ((Num * 50)/(TotalNum))
  24. if NewNum < 2 then NewNum = 2
  25. if NewNum > 50 then NewNum = 50
  26. NewNum = trunc(NewNum)
  27. Hook Straw NewNum
  28.  
  29. exit
  30.