home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format 61
/
af061a.adf
/
Macros
/
DynAnim.clssa
< prev
next >
Wrap
Text File
|
1993-05-03
|
3KB
|
87 lines
/***********************************************************************
GADGET: "DynAnimRecord" "2" AUTO TYP: "?"
$DAT >>DynAnim.clssa<< 03 May 1993 - (C) ProDAD Holger Burkarth
The current anim is adjusted in size and then joined to the Master
anim. The first frame is taken from the current range. The macro asks
for the desired frame number and uses this value to to represent the
new range length. The program tries to evenly distribute the frames.
************************************************************************/
Options RESULTS
Address clariSSA
FailAt 10
AltFail=RESULT
DO FOREVER
SelectAnim "Source_A Source_B Source_C Source_D",
"TITLE 'Select the Source Anim@for the dynamic recording.'",
"REQ"
IF rc > 1 THEN LEAVE
WorkAnim=RESULT
IF WorkAnim~="Master" THEN DO
GetAnimInfo WorkAnim
IF RESULT='' THEN WorkAnim=""
IF WorkAnim~='' THEN DO
SelectAnim WorkAnim
GetArea
MerkeArea=RESULT
PARSE VAR MerkeArea "FROM" von "TO" bis Richtung
IF Richtung="UP" THEN Richtung= 1
ELSE Richtung=-1
NaturAnzahl=bis - von +1
IF NaturAnzahl > 3 THEN DO
INTRequest "'Selected Range == "NaturAnzahl" Frames''Please enter the desired''frame number'" NaturAnzahl
IF RC~=0 THEN LEAVE
SynAnzahl=RESULT
IF SynAnzahl > 1 THEN DO
IF Richtung=-1 THEN DO
M=von
von=bis
bis=M
END
M=0
S=(SynAnzahl-1)/NaturAnzahl
C=1
PARSE VAR Datei pos Datei
DO UNTIL NaturAnzahl<1
C=C+S
x=TRUNC(C)
IF M~=x THEN DO
rep=x-M
M=x
SetArea FROM von TO von
l=0
DO UNTIL l>=rep
l=l+1
Record "AREA"
IF rc~=0 THEN LEAVE
END
IF rc~=0 THEN LEAVE
END
NaturAnzahl=NaturAnzahl-1
von=von+Richtung
END
SetArea MerkeArea
SelectAnim MASTER
END; ELSE Message "'Wrong Input!'"
END; ELSE Message "'For a dynamic recording you need''to use at least 4 Frames.'"
END; ELSE Message '"No Anim Available!"'
END; ELSE Message "'MASTER-Anim is for recording!''First you must select''a Source-Anim.'"
LEAVE
END
FailAt AltFail
exit