home *** CD-ROM | disk | FTP | other *** search
- /*
- Control Tower Arexx Script
- Written By J.L. White
- (C)1995 Merlin's Software
- Lines=7
- 01=Gradually Rotate Image
- 02=
- 03=This script loads each image of the File List Window
- 04=into ImageFX and Gradually rotate each image over
- 05=the length of frames. It divides the total number of
- 06=frames by the current frame number * the highest value
- 07=of this function to gradually adjust the list.
-
- */
-
- options results
-
- arg FrameNum TotalFiles
- address "IMAGEFX.1"
-
-
- if FrameNum = 0 then do
- FrameNum = 1
- Gadget.1 = 'Select Direction To Use!'
- Gadget.2 = 'CLOCKWISE'
- Gadget.3 = 'COUNTER-CLOCKWISE'
- ListRequest 3 Gadget
- if result = 2 then Answer = "RIGHT"
- if result = 3 then Answer = "LEFT"
- call open TempFile,"Ram:CT-IFGRT",W
- call writeln TempFile,Answer
- call close TempFile
- end
- else do
- call open TempFile,"Ram:CT-IFGRT",R
- line = readln(TempFile)
- parse var line Answer
- call close TempFile
- end
-
- Num = ((FrameNum * 360)/(TotalFiles))
- Num = trunc(Num)
- if FrameNum > 1 then do
- if Answer = "RIGHT" then
- Rotate Num
- else
- Rotate 0-Num
- end
-
-
- exit
-