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

  1. /*
  2. ** SaveAsSCULPT.fred.pre
  3. **
  4. ** $VER: SaveAsSCULPT.fred.pre 1.2.0 (4.11.93)
  5. **
  6. ** If the SaveAsSCULPT.fred script appears in the InvokeADPro list,
  7. ** this program will ask the user to enter the level of quality for the
  8. ** SCULPT'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. **    FREDSCULPTFNameSelect    -    String describing how the filename
  14. **                    should be modified
  15. **
  16. ** NOTE: Clip names are case sensitive.
  17. **
  18. ** This script requires FRED v1.4.0 (or higher) to run.  Also required is
  19. ** ADPro v2.5.0 (or higher).
  20. **
  21. ** Copyright © 1993 ASDG, Incorporated
  22. ** All Rights Reserved
  23. */
  24.  
  25.  
  26. ADDRESS "ADPro"
  27. OPTIONS RESULTS
  28.  
  29. PARSE ARG NumberOfCells NumberOfFrames
  30.  
  31. NL = '0A'X
  32. SQ = '27'X
  33. DQ = '22'X
  34. TRUE  = 1
  35. FALSE = 0
  36.  
  37.  
  38. /*
  39. ** Ask if the file should be relocated to a different directory.
  40. */
  41.  
  42. ADPRO_TO_FRONT
  43.  
  44. OKAYN '"ModifyFilenameSelect"' '"Move generated SCULPT files?"' '"Keep in Same Directory|Move to New Directory|Cancel"'
  45. IF (RC = 0) THEN DO
  46.     SCREEN_TO_FRONT "FRED"
  47.     EXIT 10
  48. END
  49. ELSE IF (RC = 1) THEN DO
  50.     SameDirID = TRUE
  51.     NewDir = "XXX"
  52. END
  53. ELSE IF (RC = 2) THEN DO
  54.     SameDirID = FALSE
  55.     CALL "FREDSCRIPTS:FREDFunctions/GetADir" '"Select new directory"' '"ADPRO:"' TRUE
  56.     IF (RESULT = DQ||DQ) THEN
  57.         EXIT 10
  58.     ELSE
  59.         NewDir = RESULT
  60. END
  61.  
  62. SCREEN_TO_BACK "FRED"
  63.  
  64. FNameSelect = 0 0 SameDirID DQ || NewDir || DQ
  65.  
  66.  
  67. /*
  68. ** Update the clips.
  69. */
  70.  
  71. SETCLIP( "FREDSCULPTFNameSelect", FNameSelect )
  72.  
  73. EXIT 0
  74.