home *** CD-ROM | disk | FTP | other *** search
- /* FILE: GETSEQ.REXX - Gets a frame from a Flyer Clip */
-
- options results
- TOASTERLIB="ToasterARexx.port"
-
- /*** Get files and frame number from command line ***/
-
- PARSE ARG fromname ',' clipname
-
- /*** Exit LightWave ***/
-
- ADDRESS 'LightWaveARexx.port'
- 'EnterSwitcher'
-
- /*** Call command in separate process to start ToasterPaint ***/
- ADDRESS COMMAND
- 'Wait 1'
- 'RUN >NIL: RX HFX:FLYER/STARTTP'
- 'Wait 5'
-
- /*** Send commands to ToasterPaint to extract the image ***/
-
- ADDRESS 'DigiPaint'
-
- /* Set output clip */
- 'Sacp'
- Call SetFile(clipname)
-
- /* Load 24 bit image */
- Call LoadRGB(fromname)
-
- /* Append the two fields to the clip */
- 'Apfc'
- 'Apfc'
-
- /*** Quit ToasterPaint, return to Switcher ***/
- 'Quit'
-
- /*** Run external program to Return to LightWave (won't exit till LightWave exits) ***/
-
- ADDRESS COMMAND
- 'Wait 1'
- 'RUN >NIL: RX HFX:FLYER/STARTLW'
- 'Wait 2'
- exit
-
-
- SetFile: PROCEDURE /* Select file in current requester */
- arg file
- dirname=GetPathName(file)
- 'Dnam'dirname /* Enter file path */
- filename=GetFileName(file)
- 'Fnam'filename /* Enter File name */
- 'Okls' /* Hit the OK button */
- return
-
- LoadRGB: PROCEDURE
- arg filename
- 'Lo24' /* Call file requester */
- Call SetFile(filename)
- return
-
- GetFileName: procedure /* Extract file name from full file specification */
- ARG fullfile
- c = lastpos("/",fullfile)
- if c = 0 then c = lastpos(":",fullfile)
- return substr(fullfile, c + 1)
-
- GetPathName: procedure /* Extract directory name from full file specification */
- ARG fullfile
- c = lastpos("/",fullfile)
- if c = 0 then c = lastpos(":",fullfile)
- return left(fullfile,c)
-
-