home *** CD-ROM | disk | FTP | other *** search
- /*
- Control Tower Arexx Script
- Written By J.L. White
- (C)1995 Merlin's Software
- Lines=6
- 01=Polaroid Image
- 02=
- 03=This script loads each image of the File List
- 04=Window into ImageFX and allows the user select
- 05=a background then redraws the image in the shape
- 06=of a Polaroid Picture.
-
- */
-
- 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
- RequestResponse "Do You Want To Add A Shadow?"
- Answer2 = "YES"
- if rc ~= 0 then Answer2 = "NO"
- if Answer2 = "YES" then do
- RequestSlider '"Enter Amount To Darken Shadow!"' 1 100 60
- Answer3 = result
- RequestResponse "Do You Want Soft Edge Shadows?"
- Answer5 = "YES"
- if rc ~= 0 then Answer6 = "NO"
- if Answer5 = "YES" then do
- RequestSlider '"Enter Amount To Feather Shadow!"' 1 50 5
- Answer6 = Result
- end
- end
-
- call open TempFile,"RAM:CT-IFPP",W
- call writeln TempFile,Answer2
- call writeln TempFile,Answer3
- call writeln TempFile,Answer5
- call writeln TempFile,Answer6
- call writeln TempFile,PicName
- call writeln TempFile,Type
- call writeln TempFile,Start
- call close TempFile
- end
- else do
- call open TempFile,"RAM:CT-IFPP",R
- line = readln(TempFile)
- parse var line Answer2
- line = readln(TempFile)
- parse var line Answer3
- line = readln(TempFile)
- parse var line Answer5
- line = readln(TempFile)
- parse var line Answer6
- 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
-
- ActiveColor 1
- DrawMode Normal
- DrawStyle Normal
- Pen 0 1
- Blend 100
- AlphaChannel Off
- EdgeMode Normal 0
- FillMode Solid 0 0 0 SMOOTH
- AirbrushSettings 5 50 0 Spray
-
- GetMain
- parse var result Name Width Height Blah
- Scissors
- Region Brush
- DrawMode Normal
- Box 0 0 Width Height
-
- 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
-
- call MakePic()
-
- exit
-
-
-
- MakePic:
-
- if Answer2 = "YES" then do
- if Answer5 = "YES" then EdgeMode FeatherOut Answer6
- ActiveColor 1
- Blend Answer3
- DrawMode Darken
- FilledBox 144 76 514 369
- EdgeMode Normal
- end
-
- Blend 100
- DrawMode Normal
- ActiveColor 1
- FilledBox 120 49 515 375
- FillMode Warp 0 0 0 Smooth
- FilledBox 142 68 472 298
- FillMode Solid 0 0 0 SMOOTH
- KillBrush
- return
-