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

  1. /*
  2. ** SaveAsGIF.fred.pre
  3. **
  4. ** $VER: SaveAsGIF.fred.pre 1.2.0 (24.10.93)
  5. **
  6. ** If the SaveAsGIF.fred script appears in the InvokeADPro list,
  7. ** this program will ask the user to enter the save parameters for the
  8. ** GIF'd file.  These parameters will be stuffed into REXX clips.
  9. **
  10. ** If they fail to answer, the InvokeADPro list will be aborted.
  11. **
  12. ** Clips Exported:
  13. **    FREDGIFFNameSelect    -    String describing how the filename
  14. **                    should be modified
  15. **    FREDGIFSeqFileSelect    -    Sequence file name
  16. **
  17. ** NOTE: Clip names are case sensitive.
  18. **
  19. ** This script requires FRED v1.4.0 (or higher) to run.  Also required is
  20. ** ADPro v2.5.0 (or higher).
  21. **
  22. ** Copyright © 1992-1993 ASDG, Incorporated
  23. ** All Rights Reserved
  24. */
  25.  
  26.  
  27. ADDRESS "ADPro"
  28. OPTIONS RESULTS
  29.  
  30. PARSE ARG NumberOfCells NumberOfFrames
  31.  
  32. NL = '0A'X
  33. SQ = '27'X
  34. DQ = '22'X
  35. TRUE  = 1
  36. FALSE = 0
  37.  
  38.  
  39. /*
  40. ** Ask the user which type of data should be saved out.
  41. */
  42.  
  43. ADPRO_TO_FRONT
  44.  
  45. OKAYN '"SaveAsGIF.fred"' '"Select save data type"' '"Cropped Screen|Image|Cancel"'
  46. IF (RC = 0) THEN DO
  47.     SCREEN_TO_FRONT "FRED"
  48.     EXIT 10
  49. END
  50. ELSE IF (RC = 1) THEN
  51.     SaveType = "SCREEN"
  52. ELSE IF (RC = 2) THEN
  53.     SaveType = "IMAGE"
  54.  
  55.  
  56. /*
  57. ** Specify whether the given filename should be reused for the
  58. ** GIF'd filename.
  59. */
  60.  
  61. CALL "FREDSCRIPTS:FREDFunctions/ModifyFilenameSelect" '"'".gif"'"' 4 1 10
  62. FNameSelect = RESULT
  63. IF (RESULT = 10) THEN
  64.     EXIT RESULT
  65.  
  66. CALL "FREDSCRIPTS:FREDFunctions/SeqFileSelect"
  67. SeqFileSelect = RESULT
  68. IF (RESULT = 10) THEN
  69.     EXIT RESULT
  70.  
  71.  
  72. /*
  73. ** Update the clips.
  74. */
  75.  
  76. SETCLIP( "FREDGIFSaveType", SaveType )
  77. SETCLIP( "FREDGIFFNameSelect", FNameSelect )
  78. SETCLIP( "FREDGIFSeqFileSelect", SeqFileSelect )
  79.  
  80. EXIT 0
  81.