home *** CD-ROM | disk | FTP | other *** search
- /*
- ** SaveToOPALVISION.fred.pre
- **
- ** $VER: SaveToOPALVISION.fred.pre 1.3.0 (24.10.93)
- **
- ** If the SaveToOPALVISION.fred script appears in the InvokeADPro list,
- ** this program will ask the user to select the screen mode and other
- ** display settings to use.
- **
- ** Clips Exported:
- ** FREDOVScreenType - Screen type to be used
- ** FREDOVDuration - Duration (in ticks)
- ** FREDOVUseRawData - Whether to use Raw image or not
- ** (if 1, use Raw instead of Rendered)
- **
- ** 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 the user which type of data to display.
- */
-
- ADPRO_TO_FRONT
-
- OKAYN '"SaveToOPALVISION.fred"' '"Select save data type"' '"Image|Raw|Cancel"'
- IF (RC = 0) THEN DO
- SCREEN_TO_FRONT "FRED"
- EXIT 10
- END
- ELSE
- UseRawData = RC - 1
-
-
- /*
- ** Ask the user which screen mode should be used for display.
- */
-
- ScreenType = 0
-
- ADPRO_TO_FRONT
-
- OKAYN '"SaveToOPALVISION.fred"' '"Which Resolution?"' '"High|Low|Cancel"'
- IF (RC = 0) THEN DO
- SCREEN_TO_FRONT "FRED"
- EXIT 10
- END
- ELSE IF (RC = 1) THEN
- ScreenType = ScreenType + 1
-
- ADPRO_TO_FRONT
-
- OKAYN '"SaveToOPALVISION.fred"' '"Enable Interlace?"' '"Interlace|Non-Interlace|Cancel"'
- IF (RC = 0) THEN DO
- SCREEN_TO_FRONT "FRED"
- EXIT 10
- END
- ELSE IF (RC = 1) THEN
- ScreenType = ScreenType + 2
-
- ADPRO_TO_FRONT
-
- OKAYN '"SaveToOPALVISION.fred"' '"Enable Overscan?"' '"Overscan|Non-Overscan|Cancel"'
- IF (RC = 0) THEN DO
- SCREEN_TO_FRONT "FRED"
- EXIT 10
- END
- ELSE IF (RC = 1) THEN
- ScreenType = ScreenType + 16
-
- SCREEN_TO_FRONT "FRED"
-
-
- /*
- ** Ask the user for how long (in ticks) this image should be displayed
- ** (max = 60 seconds).
- */
-
- CALL "FREDSCRIPTS:FREDFunctions/GetANumber" '"Display length (50 ticks/sec)"' 0 0 (60*50) TRUE
- IF (RESULT = (0-1)) THEN
- EXIT 10
- Duration = RESULT
-
-
- /*
- ** Update the clips.
- */
-
- SETCLIP( "FREDOVUseRawData", UseRawData )
- SETCLIP( "FREDOVScreenType", ScreenType )
- SETCLIP( "FREDOVDuration", Duration )
-
- EXIT 0
-