home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD1.iso / GFX / ADPro251-3.DMS / ADPro251-3.adf / FREDScripts.lha / FREDOperators / DisplacePixel.fred.pre < prev    next >
Encoding:
Text File  |  1994-01-31  |  986 b   |  55 lines

  1. /*
  2. ** DisplacePixel.fred.pre
  3. **
  4. ** $VER: DisplacePixel.fred.pre 1.1.0 (23.10.93)
  5. **
  6. ** If the DisplacePixel.fred script appears in the InvokeADPro list,
  7. ** this program will set up some variables.
  8. **
  9. ** Clips Exported:
  10. **    FREDDispFrameNum    -    Current frame number (starting @ 1)
  11. **    FREDDispNumberOfFrames    -    Number of frames
  12. **
  13. ** NOTE: Clip names are case sensitive.
  14. **
  15. ** This script requires FRED v1.4.0 (or higher) to run.  Also required is
  16. ** ADPro v2.5.0 (or higher).
  17. **
  18. ** Copyright © 1992-1993 ASDG, Incorporated
  19. ** All Rights Reserved
  20. */
  21.  
  22.  
  23. ADDRESS "ADPro"
  24. OPTIONS RESULTS
  25.  
  26. PARSE ARG NumberOfCells NumberOfFrames
  27.  
  28. NL = '0A'X
  29. SQ = '27'X
  30. DQ = '22'X
  31. TRUE  = 1
  32. FALSE = 0
  33.  
  34.  
  35. /*
  36. ** Ensure that at least two frames are to be processed.
  37. */
  38.  
  39. IF (NumberOfFrames < 2) THEN DO
  40.     ADPRO_TO_FRONT
  41.     OKAY1 "Frame count must be more than 2"
  42.     SCREEN_TO_FRONT "FRED"
  43.     EXIT 10
  44. END
  45.  
  46.  
  47. /*
  48. ** Update the clips.
  49. */
  50.  
  51. SETCLIP( "FREDDispFrameNum", 1 )
  52. SETCLIP( "FREDDispNumberOfFrames", NumberOfFrames )
  53.  
  54. EXIT 0
  55.