home *** CD-ROM | disk | FTP | other *** search
- /*
- Control Tower Arexx Script
- Written By J.L. White
- (C)1995 Merlin's Software
- Lines=6
- 01=Growing Peep Hole
- 02=
- 03=This script loads each image of the File List Window
- 04=into ImageFX. It then asks for a background image or
- 05=clip and gradually a hole in the center grows allowing
- 06=the second image to show through.
- */
-
- options results
-
- arg FrameNum TotalFiles
- address "IMAGEFX.1"
-
- Start = 0
- if FrameNum = 0 then do
- FrameNum = 1
- Gadget.1 = 'Select Type For BackGround!'
- 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 BackGround!"'
- PicName = result
- RequestNumber '"Select Frame Number To Start With!"' 1
- Start = result-1
- end
- else do
- RequestFile '"Select File To Use For BackGround!"'
- 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
-
- RequestSlider '"Enter Amount To Feather Peep Hole!"' 1 50 5
- Answer = Result
-
- call open TempFile,"RAM:CT-IFGPH",W
- call writeln TempFile,PicName
- call writeln TempFile,Type
- call writeln TempFile,Answer
- call writeln TempFile,Start
- call close TempFile
- end
- else do
- call open TempFile,"RAM:CT-IFGPH",R
- line = readln(TempFile)
- parse var line PicName
- line = readln(TempFile)
- parse var line Type
- line = readln(TempFile)
- parse var line Answer
- line = readln(TempFile)
- parse var line Start
- call close TempFile
- end
-
-
- GetMain
- parse var result Name Width Height Blah
-
- Swap
- if FrameNum = 0 then CreateBuffer 752 480 Force
- ClearBuffer Force 0 0 0
- AlphaChannel Off
- EdgeMode FeatherOut Answer
- if Width > Height then
- Num = ((FrameNum * Height)/TotalFiles)%1
- else
- Num = ((FrameNum * Width)/TotalFiles)%1
- FilledOval Width/2 Height/2 Num Num
- EdgeMode Normal
- Buffer2Alpha
-
- 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
- AlphaChannel FRISKET
- Merge 100 Alpha
-
-
- exit
-
-
-
-