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

  1. /*
  2. ** Antique.fred
  3. **
  4. ** $VER: Antique.fred 1.1.0 (23.10.93)
  5. **
  6. ** This program can be run from an InvokeADPro list to run the current
  7. ** frame through the Antique operator.
  8. **
  9. ** This script requires FRED v1.4.0 (or higher) to run.  Also required is
  10. ** ADPro v2.5.0 (or higher).
  11. **
  12. ** Copyright © 1993 ASDG, Incorporated
  13. ** All Rights Reserved
  14. */
  15.  
  16.  
  17. ADDRESS "ADPro"
  18. OPTIONS RESULTS
  19.  
  20. PARSE ARG FrameNum FrameFName Length LoadFlag FirstCallSeq FirstCallCell
  21.  
  22. NL = '0A'X
  23. SQ = '27'X
  24. DQ = '22'X
  25. TRUE  = 1
  26. FALSE = 0
  27.  
  28.  
  29. /*
  30. ** See what type of data is loaded in ADPro/MorphPlus.
  31. */
  32.  
  33. CALL "FREDSCRIPTS:FREDFunctions/CheckForRawImageData" TRUE
  34. IF (RESULT ~= 0) THEN
  35.     EXIT 10
  36.  
  37.  
  38. /*
  39. ** See what type of data is loaded in ADPro/MorphPlus.
  40. */
  41.  
  42. CALL "FREDSCRIPTS:FREDFunctions/CheckForColorImageData" TRUE
  43. IF (RESULT ~= 0) THEN
  44.     EXIT 10
  45.  
  46.  
  47. /*
  48. ** Do the Antique operation.
  49. */
  50.  
  51. OPERATOR "ANTIQUE"
  52. IF (RC ~= 0) THEN DO
  53.     Why = ADPRO_RESULT
  54.     ADPRO_TO_FRONT
  55.     OKAY1 "The operator Antique" || NL ||,
  56.         "failed to execute." || NL ||,
  57.         Why
  58.     SCREEN_TO_FRONT "FRED"
  59.     EXIT 10
  60. END
  61.  
  62. EXIT 0
  63.