home *** CD-ROM | disk | FTP | other *** search
- /*
- * $VER: BustANIM 2.0.0 (22.7.94)
- *
- * Arexx program for the ImageFX image processing system.
- * Written by Thomas Krehbiel
- *
- * This program will break up an ANIM into a series of colormapped
- * image files.
- *
- */
-
- OPTIONS RESULTS
-
- GetPrefs LoadPath
- path = result
-
- RequestFile '"Select Animation:"' path PATTERN '#?.anim#?'
- IF rc ~= 0 THEN EXIT
-
- filename = result
- fileonly = FILEREQ.FILE
-
- RequestFile '"Select Output Path For Frames:"' path DIRONLY
- IF rc ~= 0 THEN EXIT
-
- outpath = result
- IF RIGHT(outpath,1) ~= ':' THEN DO
- outpath = outpath || '/'
- END
-
- framenum = 1
-
- DO FOREVER
-
- Message 'Busting frame' framenum
-
- LoadMapped filename framenum
- IF rc ~= 0 THEN LEAVE
-
- SaveRenderedAs ILBM outpath||fileonly||'.'||RIGHT('00000'||framenum,5)
- IF rc ~= 0 THEN LEAVE
-
- framenum = framenum + 1
-
- END
-
- KillMapped
-
- EXIT
-