home *** CD-ROM | disk | FTP | other *** search
- /*
- Control Tower Arexx Script
- Written By J.L. White
- (C)1995 Merlin's Software
- Lines=6
- 01=Image Map
- 02=
- 03=This script loads each image of the File List Window
- 04=into ImageFX and composites the color value (Hue) from
- 05=the selected swap image into the Main buffer without
- 06=affecting the original brightness value of the Main buffer.
- */
-
- options results
-
- arg FrameNum TotalFiles
- address "IMAGEFX.1"
-
- if FrameNum = 0 then do
- FrameNum = 1
- Gadget.1 = 'Select Type For Merge!'
- 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 Merge!"'
- PicName = result
- RequestNumber '"Select Frame Number To Start With!"' 1
- Start = result-1
- end
- else do
- RequestFile '"Select File To Use For Merge!"'
- 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 Percentage Of Blend To Use!"' 1 100 50
- Answer = Result
- Gadget.1 = 'Do You Want Swap Buffer Scaled To Fit?'
- Gadget.2 = 'YES'
- Gadget.3 = 'NO'
- ListRequest 3 Gadget
- Answer2 = ""
- if result = 2 then Answer2 = "Scale"
- call open TempFile,"Ram:CT-IFIM",W
- call writeln TempFile,Answer
- call writeln TempFile,Answer2
- call writeln TempFile,PicName
- call writeln TempFile,Type
- call writeln TempFile,Start
- call close TempFile
- end
- else do
- call open TempFile,"Ram:CT-IFIM",R
- line = readln(TempFile)
- parse var line Answer
- line = readln(TempFile)
- parse var line Answer2
- line = readln(TempFile)
- parse var line PicName
- line = readln(TempFile)
- parse var line Type
- line = readln(TempFile)
- parse var line Start
- call close TempFile
- end
-
- Swap
- if Type = "CLIP" then
- LoadBuffer PicName FrameNum Force
- if Type = "IMAGE" then
- LoadBuffer PicName Force
- if Type = "SEQUENCE" then
- LoadBuffer PicName""right(FrameNum,3,'0') Force
- Swap
-
- ImageMap Answer Answer2
-
- exit
-