home *** CD-ROM | disk | FTP | other *** search
- /*
- Control Tower Arexx Script
- Written By J.L. White
- (C)1995 Merlin's Software
-
- Lines=15
- 01=Earth Quake
- 02=
- 03=This effect will take a clip or
- 04=image sequence and give the effect
- 05=of a camera shooting video while
- 06=an earth quake is happening. What
- 07=it does is take each image then it
- 08=picks it up as a brush then randomly
- 09=moves it up, down, left, or right
- 10=and stamps it back down on the main
- 11=images and blurs the two togther.
- 12=
- 13=It will start out slow then get more
- 14=motion as it goes then slow back down
- 15=at the end.
- */
-
- options results
-
- arg FrameNum TotalNum
- address "IMAGEFX.1"
-
- if FrameNum = 0 then do
- FrameNum = 1
- call open TempFile,"Ram:CT-IFEQ",W
- EaseInOut = TotalNum%2
- do i = 1 to TotalNum
- Big = 1
- if i < EaseInOut%4 then Big = 1
- if i < EaseInOut%2 & i > (EaseInOut%4)-1 then Big = 2
- if i > (EaseInOut%2)-1 & i < EaseInOut-(EaseInOut%4) then Big = 3
- if i > (EaseInOut-(EaseInOut%4))-1 & i < EaseInOut+(EaseInOut%4) then Big = 5
- if i > (EaseInOut+(EaseInOut%4))-1 & i < EaseInOut+(EaseInOut%2) then Big = 3
- if i > (EaseInOut+(EaseInOut%2)-1) & i < TotalNum-(EaseInOut%4) then Big = 2
- if i > TotalNum-(EaseInOut%4) then Big = 1
- X = random(0,Big)
- Y = random(0,Big)
- call writeln TempFile,X" "Y
- end
- call close TempFile
- end
- DrawMode Normal
- ActiveColor 1
- Blend 100
- AlphaChannel Off
- GetMain
- parse var result Name Width Height Blah
- Scissors
- FilledBox 0 0 Width Height
- Blend 75
- BrushHandle 0 0
- call open InData,"Ram:CT-IFEQ",'R'
- do i = 1 to FrameNum
- line = readln(InData)
- end
- parse var line X" "Y
- call close InData
- Point X Y
-
- exit
-