home *** CD-ROM | disk | FTP | other *** search
- /*
- Control Tower Arexx Script
- Written By J.L. White
- (C)1995 Merlin's Software
- Lines=8
- 01=Split Screen
- 02=
- 03=This script loads each image of the File List Window
- 04=into ImageFX and allows the user to add another image
- 05=or clip any where on the screen. This is great for doing
- 06=split images with one on the left and one on the right.
- 07=This does not resize the image it just shows through in
- 08=the rectangle area you select.
-
- */
-
- options results
-
- arg FrameNum TotalFiles
- address "IMAGEFX.1"
-
- Start = 0
- if FrameNum = 0 then do
- FrameNum = 1
- Gadget.1 = 'Select Type For 2nd 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 2nd Image!"'
- PicName = result
- RequestNumber '"Select Frame Number To Start With!"' 1
- Start = result-1
- end
- else do
- RequestFile '"Select File To Use For 2nd 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
- KillBrush
- call PickBox()
-
- call open TempFile,"RAM:CT-IFSS",W
- call writeln TempFile,Answer
- call writeln TempFile,PicName
- call writeln TempFile,Type
- call writeln TempFile,Start
- call close TempFile
- end
- else do
- call open TempFile,"RAM:CT-IFSS",R
- line = readln(TempFile)
- parse var line X1 Y1 X2 Y2
- 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
-
- DrawMode Normal
- ActiveColor 1
- GetMain
- parse var result Name Width Height Blah
- AlphaChannel Off
- FrameNum = FrameNum + Start
- Swap
- 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
- DrawMode Normal
- DrawStyle RubThrough
- FilledBox X1 Y1 X2-X1 Y2-Y1
- DrawStyle Normal
-
- exit
-
-
-
- PickBox:
- Menu ToolBox
- RequestNotify "Draw Rectangle Where You Want 2nd Image To Show!"
- DrawTool Box
- HidePanel
- Undo On
- WaitFor SELECTDOWN
- parse var result X1 Y1
- WaitFor SELECTUP
- parse var result X2 Y2
- Undo
- ShowPanel
- Undo Off
- X1 = strip(X1)
- Y1 = strip(Y1)
- X2 = strip(X2)
- Y2 = strip(Y2)
- Answer = X1" "Y1" "X2" "Y2
- RequestResponse "Is The Box You Selected Correct?"
- if rc ~= 0 then call PickBox()
-
- return
-