home *** CD-ROM | disk | FTP | other *** search
- /*
- Control Tower Arexx Script
- Written By J.L. White
- (C)1995 Merlin's Software
-
- Lines=10
- 01=Composite Blue Screen
- 02=
- 03=This is a very powerful script to allow
- 04=you to create a Chroma Key type of an
- 05=effect. The images or clips in your list
- 06=should be shot against a blue or green
- 07=background. You can then select an image,
- 08=sequence, or clip to use in the background.
- 09=Then it will composite the two together and
- 10=replace the blue with the background image.
-
- */
-
- options results
-
- arg FrameNum TotalFiles
- address "IMAGEFX.1"
-
- Start = 0
- if FrameNum = 0 then do
- FrameNum = 1
- Gadget.1 = 'Select Type Of BackGround For Blue Screen!'
- 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
- KillBrush
- Gadget.1 = 'Select Color For CineMatte!'
- Gadget.2 = 'BLUE'
- Gadget.3 = 'GREEN'
- ListRequest 3 Gadget
- if result = 2 then CType = "BlueScreen"
- if result = 3 then CType = "GreenScreen"
-
- call open TempFile,"RAM:CT-IFCBS",W
- call writeln TempFile,PicName
- call writeln TempFile,Type
- call writeln TempFile,CType
- call writeln TempFile,Start
- call close TempFile
- end
- else do
- call open TempFile,"RAM:CT-IFCBS",R
- line = readln(TempFile)
- parse var line PicName
- line = readln(TempFile)
- parse var line Type
- line = readln(TempFile)
- parse var line CType
- line = readln(TempFile)
- parse var line Start
- 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
- Hook CineMatte CType OutputBoth 1 0 0 0 0 0 0 0 0 255
-
-
- exit
-
-
-
-