home *** CD-ROM | disk | FTP | other *** search
- /*
- PAR VIEW IMAGE OR ANIMATION
- By J.L. White
- ©1994 Merlin's Software
-
- Allows You To View A PAR Anim Or
- Still With The View Button In Batch Factory
-
- Personal Animation Recorder Script
-
- Batch Factory Batch Conversion Scripts are basically Arexx scripts that
- allow you to pass certain parameters to the external program you wish
- to use to convert the images from one format to another. You can pass
- five different strings from Batch Factory to the script by using the
- following commands:
-
- $N = This will pass the current selected filename.
- $P = This will tell Batch Factory to ask for a path to save new frames to.
- $# = This will pass the current frame number in the script.
- $T = This will pass the total number of frames in the script.
- $A = This will pass an offset number to be used to save frames with.
-
- NOTE: The following line is required to work as a Batch Factory Script:
-
- PARSE=$N
-
- */
-
- arg InFile
- options results
-
- address "DDR"
- PathName = GetPathName(InFile)
- ProjectName = GetProjectName(PathName)
- NameLength = Length(ProjectName)
- ProjectName = left(ProjectName,NameLength-1)
- Project ProjectName
- FileName = GetFileName(InFile)
- FPS 30
- Play FileName
- exit
-
- GetFileName: procedure
- ARG CompleteName
- c = lastpos("/",CompleteName)
- if c = 0 then c = lastpos(":",CompleteName)
- return substr(CompleteName, c + 1)
-
- GetPathName: procedure
- ARG CompleteName
- c = lastpos("/",CompleteName)
- if c = 0 then c = lastpos(":",CompleteName)
- return left(CompleteName,c)
-
- GetProjectName: procedure
- ARG CompleteName
- c = lastpos(":",CompleteName)
- return substr(CompleteName,c+1)
-
-