home *** CD-ROM | disk | FTP | other *** search
- /*
- ** SaveAsSCULPT.fred.pre
- **
- ** $VER: SaveAsSCULPT.fred.pre 1.2.0 (4.11.93)
- **
- ** If the SaveAsSCULPT.fred script appears in the InvokeADPro list,
- ** this program will ask the user to enter the level of quality for the
- ** SCULPT'd file. These parameters will be stuffed into REXX clips.
- **
- ** If they fail to answer, the InvokeADPro list will be aborted.
- **
- ** Clips Exported:
- ** FREDSCULPTFNameSelect - String describing how the filename
- ** should be modified
- **
- ** NOTE: Clip names are case sensitive.
- **
- ** This script requires FRED v1.4.0 (or higher) to run. Also required is
- ** ADPro v2.5.0 (or higher).
- **
- ** Copyright © 1993 ASDG, Incorporated
- ** All Rights Reserved
- */
-
-
- ADDRESS "ADPro"
- OPTIONS RESULTS
-
- PARSE ARG NumberOfCells NumberOfFrames
-
- NL = '0A'X
- SQ = '27'X
- DQ = '22'X
- TRUE = 1
- FALSE = 0
-
-
- /*
- ** Ask if the file should be relocated to a different directory.
- */
-
- ADPRO_TO_FRONT
-
- OKAYN '"ModifyFilenameSelect"' '"Move generated SCULPT files?"' '"Keep in Same Directory|Move to New Directory|Cancel"'
- IF (RC = 0) THEN DO
- SCREEN_TO_FRONT "FRED"
- EXIT 10
- END
- ELSE IF (RC = 1) THEN DO
- SameDirID = TRUE
- NewDir = "XXX"
- END
- ELSE IF (RC = 2) THEN DO
- SameDirID = FALSE
- CALL "FREDSCRIPTS:FREDFunctions/GetADir" '"Select new directory"' '"ADPRO:"' TRUE
- IF (RESULT = DQ||DQ) THEN
- EXIT 10
- ELSE
- NewDir = RESULT
- END
-
- SCREEN_TO_BACK "FRED"
-
- FNameSelect = 0 0 SameDirID DQ || NewDir || DQ
-
-
- /*
- ** Update the clips.
- */
-
- SETCLIP( "FREDSCULPTFNameSelect", FNameSelect )
-
- EXIT 0
-