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

  1. /*
  2. ** ScaleToPixelAspect.fred.pre
  3. **
  4. ** $VER: ScaleToPixelAspect.fred.pre 1.1.0 (23.10.93)
  5. **
  6. ** If the ScaleToPixelAspect.fred script appears in the InvokeADPro list,
  7. ** this program will ask the user to enter an x and y aspect value.
  8. **
  9. ** Clips Exported:
  10. **    FREDScaleToXAspect    -    X Aspect user entered
  11. **    FREDScaleToYAspect    -    Y Aspect user entered
  12. **
  13. ** NOTE: Clip names are case sensitive.
  14. **
  15. ** This script requires FRED v1.4.0 (or higher) to run.  Also required is
  16. ** ADPro v2.5.0 (or higher).
  17. **
  18. ** Copyright © 1993 ASDG, Incorporated
  19. ** All Rights Reserved
  20. */
  21.  
  22.  
  23. ADDRESS "ADPro"
  24. OPTIONS RESULTS
  25.  
  26. PARSE ARG NumberOfCells NumberOfFrames
  27.  
  28. NL = '0A'X
  29. SQ = '27'X
  30. DQ = '22'X
  31. TRUE  = 1
  32. FALSE = 0
  33.  
  34.  
  35. /*
  36. ** Ask the user for a pixel aspect to scale to.
  37. */
  38.  
  39. CALL "FREDSCRIPTS:FREDFunctions/GetANumber" '"Enter Desired X-Aspect"' 1 1 240 TRUE
  40. IF (RESULT = (1-1)) THEN
  41.     EXIT 10
  42. XAspect = RESULT
  43.  
  44. CALL "FREDSCRIPTS:FREDFunctions/GetANumber" '"Enter Desired Y-Aspect"' 1 1 240 TRUE
  45. IF (RESULT = (1-1)) THEN
  46.     EXIT 10
  47. YAspect = RESULT
  48.  
  49.  
  50. /*
  51. ** Update the clips.
  52. */
  53.  
  54. SETCLIP( "FREDScaleToXAspect", XAspect )
  55. SETCLIP( "FREDScaleToYAspect", YAspect )
  56.  
  57. EXIT 0
  58.