home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Meeting Pearls 3
/
Meeting_Pearls_III.iso
/
SYS
/
Rexx
/
Prescript.TSM
< prev
next >
Wrap
Text File
|
1995-02-05
|
2KB
|
45 lines
/* example Prescript script file for TSMorph */
/* This is the default do nothing script */
/* $VER: Prescript_TSM 3.1 (5.2.95)
*/
parse arg Base
Frame = 0 /* current frame number starting from 1 */
TotalFrames = 1 /* total number of frames */
Single = 2 /* Single image warp, 0 for two image morph */
Movement = 3 /* movement * 1024 */
Red1 = 4 /* red portion of image 1 * 1024 */
Green1 = 5 /* green portion of image 1 * 1024 */
Blue1 = 6 /* blue portion of image 1 * 1024 */
Red2 = 7 /* red portion of image 2 * 1024 */
Green2 = 8 /* green portion of image 2 * 1024 */
Blue2 = 9 /* blue portion of image 2 * 1024 */
Produce = 10 /* actually produce output file */
RPlus = 11 /* Add to Red */
GPlus = 12 /* Add to Green */
BPlus = 13 /* Add to Blue */
RMinus = 14 /* Subtract from Red */
GMinus = 15 /* Subtract from Green */
BMinus = 16 /* Subtract from blue */
DX = 17 /* X Skip */
DY = 18 /* Y SKip */
Start = 19 /* Start Frame Number */
/* To read the value of e.g Movement use:
integer_variable = GetValue(Base,Movement)
*/
/* To set the value of e.g. Produce to 0 use:
call StoreValue(Base,Produce,0)
*/
exit
GetValue:Procedure
Parse arg XBase, XAdd
return C2D(IMPORT(D2C(STRIP(XBase) + (STRIP(Xadd) * 4),4),4))
StoreValue:Procedure
Parse arg XBase, XAdd, XVal
call EXPORT(D2C(STRIP(XBase) + (STRIP(Xadd) * 4),4),D2C(XVal,4),4)
return