home *** CD-ROM | disk | FTP | other *** search
- /*
- * Do a negative effect on the given animation. Assumes the
- * Render module and render settings are already setup.
- */
-
- OPTIONS RESULTS
-
- RequestFile '"Enter Source Animation:"'
- IF rc ~= 0 THEN EXIT 0
-
- filename = result
-
- RequestFile '"Enter Destination Animation:"'
- IF rc ~= 0 THEN EXIT 0
-
- outfile = result
-
- IF EXISTS(outfile) THEN DO
- RequestResponse '"Output exists. Overwrite it?"'
- IF rc ~= 0 THEN EXIT 0
- ADDRESS COMMAND 'Delete' outfile
- END
-
- SetPrefs Undo Off
- Menu Render
-
- LockRange 0 OFF
-
- DO i = 1
-
- LoadBuffer filename Force i /* load a frame */
- IF rc ~= 0 THEN LEAVE /* oops... end of file, exit */
- Render Go /* uses current render settings */
- SaveRenderedAs ANIM outfile Append /* append to output animation */
- LockRange 0 ON
-
- END
-
- SetPrefs Undo On
-
- EXIT 0
-