home *** CD-ROM | disk | FTP | other *** search
- /*
- ** ScaleToPixelAspect.fred.pre
- **
- ** $VER: ScaleToPixelAspect.fred.pre 1.1.0 (23.10.93)
- **
- ** If the ScaleToPixelAspect.fred script appears in the InvokeADPro list,
- ** this program will ask the user to enter an x and y aspect value.
- **
- ** Clips Exported:
- ** FREDScaleToXAspect - X Aspect user entered
- ** FREDScaleToYAspect - Y Aspect user entered
- **
- ** 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 for a pixel aspect to scale to.
- */
-
- CALL "FREDSCRIPTS:FREDFunctions/GetANumber" '"Enter Desired X-Aspect"' 1 1 240 TRUE
- IF (RESULT = (1-1)) THEN
- EXIT 10
- XAspect = RESULT
-
- CALL "FREDSCRIPTS:FREDFunctions/GetANumber" '"Enter Desired Y-Aspect"' 1 1 240 TRUE
- IF (RESULT = (1-1)) THEN
- EXIT 10
- YAspect = RESULT
-
-
- /*
- ** Update the clips.
- */
-
- SETCLIP( "FREDScaleToXAspect", XAspect )
- SETCLIP( "FREDScaleToYAspect", YAspect )
-
- EXIT 0
-