home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD1.iso / GFX / Converter / IMAFX26.lha / imagefx2 / rexx / autofx / EOT_Fire_Load_Plus.ifx < prev    next >
Encoding:
Text File  |  1996-03-24  |  1.3 KB  |  62 lines

  1. /*
  2.  * EOT_Fire_Load.ifx
  3.  * Written by Gerald Bonnstetter
  4.  *
  5.  * Fire Load Sequence Effect.
  6.  *
  7.  * Inputs:
  8.  *    Word(Arg(1),1) = Frame number (1 - N)
  9.  *    Word(Arg(1),2) = Main filename ("-" if not specified)
  10.  *    Word(Arg(1),3) = Swap filename ("-" if not specified)
  11.  *    Word(Arg(1),4) = Sequence number (?)
  12.  *    Word(Arg(1),5) = Total number of frames (N)
  13.  *
  14.  * Returns:
  15.  *    0 if successful, non-zero on failure
  16.  *
  17.  */
  18.  
  19. OPTIONS RESULTS
  20.  
  21. framenum = Word(Arg(1),1)
  22. mainname = Word(Arg(1),2)
  23. swapname = Word(Arg(1),3)
  24. seqnum   = Word(Arg(1),4)
  25. framemax = Word(Arg(1),5)
  26.  
  27. base  = 'Autofx_Fire_'
  28.  
  29. lpath     = GETCLIP(base||'Path')
  30. lfile     = GETCLIP(base||'File')
  31. seed      = GETCLIP(base||'Seed')
  32. turb      = GETCLIP(base||'Turbulence')
  33. step      = GETCLIP(base||'StepSize')
  34. Xpos      = GETCLIP(base||'Xpos')
  35. Ypos      = GETCLIP(base||'Ypos')
  36. length    = GETCLIP(base||'Length')
  37. width     = GETCLIP(base||'Width')
  38. increment = GETCLIP(base||'Increment')
  39.  
  40.  
  41. IF datatype(framemax, 'N') = 1 THEN DO
  42.       increment = framenum * step
  43.       END
  44.    ELSE DO
  45.       increment = increment + step
  46.       END
  47.  
  48. temp = seed || ' ' || increment || ' ' || length || ' ' || width || ' 0 '
  49. temp = temp || ' ' || Xpos  || ' ' || Ypos 
  50.  
  51. temp = temp || ' Turbulence ' || turb || ' File ' || lpath || '/' || lfile
  52.  
  53. undo
  54.  
  55. Hook Fire temp
  56.  
  57. CALL SETCLIP(base||'Increment', increment)
  58.  
  59. rc = 0
  60.  
  61. EXIT rc
  62.