home *** CD-ROM | disk | FTP | other *** search
- /*
- Control Tower Arexx Script
- Written By J.L. White
- (C)1995 Merlin's Software
- Lines=7
- 01=Gradual Fade
- 02=
- 03=This script loads each image of the File List Window
- 04=into ImageFX and Gradually fade images to another 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"
-
- Start = 0
- if FrameNum = 0 then do
- FrameNum = 1
- Gadget.1 = 'Select Type For Fade To Image!'
- Gadget.2 = 'IMAGE'
- Gadget.3 = 'SEQUENCE'
- Gadget.4 = 'CLIP'
- ListRequest 4 Gadget
- if result = 2 then Type = "IMAGE"
- if result = 3 then Type = "SEQUENCE"
- if result = 4 then Type = "CLIP"
-
- if Type = "SEQUENCE" then do
- RequestFile '"Select Path & BaseName For Fade To Image!"'
- PicName = result
- RequestNumber '"Select Frame Number To Start With!"' 1
- Start = result-1
- end
- else do
- RequestFile '"Select File To Use For Fade To Image!"'
- PicName = result
- end
-
- if Type = "CLIP" then do
- Address CT_1 GetClipLength PicName
- Start = result
- RequestSlider '"Start With What Frame Of Clip!"' 1 Start 1
- Start = result-1
- end
- Gadget.1 = 'Do You Want Fade To Buffer Scaled To Fit?'
- Gadget.2 = 'YES'
- Gadget.3 = 'NO'
- ListRequest 3 Gadget
- Answer = ""
- if result = 2 then Answer = "SwapScale"
-
-
- call open TempFile,"RAM:CT-IFGF",W
- call writeln TempFile,PicName
- call writeln TempFile,Type
- call writeln TempFile,Start
- call writeln TempFile,Answer
- call close TempFile
- end
- else do
- call open TempFile,"RAM:CT-IFGF",R
- line = readln(TempFile)
- parse var line PicName
- line = readln(TempFile)
- parse var line Type
- line = readln(TempFile)
- parse var line Start
- line = readln(TempFile)
- parse var line Answer
- call close TempFile
- end
-
-
-
- Swap
-
- FrameNum = FrameNum + Start
- if Type = "CLIP" then
- LoadBuffer PicName Force FrameNum
- if Type = "IMAGE" then
- LoadBuffer PicName Force
- if Type = "SEQUENCE" then do
- if FrameNum < 1000 then
- LoadBuffer PicName""right(FrameNum,3,'0') Force
- if FrameNum < 10000 then
- LoadBuffer PicName""right(FrameNum,4,'0') Force
- end
-
- Swap
-
- Num = ((FrameNum * 100)/TotalFiles)
- Num = trunc(Num)
- if FrameNum = 1 then Num = 0
- if FrameNum = TotalFiles then Num = 100
- Hook Composite MERGE Num 1 0 0 MatchMain Answer
-
- exit
-
-
-
-