home *** CD-ROM | disk | FTP | other *** search
- /*
- * RenameOneForSequence.ifx
- * Written by Thomas Krehbiel
- *
- * Rename single frame to a sequence basename and number.
- *
- * Inputs:
- * Word(Arg(1),1) = Frame number (1 - N)
- * Word(Arg(1),2) = Main filename ("-" if not specified)
- * Word(Arg(1),3) = Swap filename ("-" if not specified)
- * Word(Arg(1),4) = Sequence number (?)
- * Word(Arg(1),5) = Total number of frames (N)
- *
- * Returns:
- * 0 if successful, non-zero on failure
- *
- */
-
- OPTIONS RESULTS
-
- framenum = Word(Arg(1),1)
- fullpath = Word(Arg(1),2)
-
- basename = GETCLIP('Autofx_RenameOneSeq_Base')
- num = GETCLIP('Autofx_RenameOneSeq_Count')
-
- DO i = 1 TO num
-
- newfilename = basename||RIGHT('00000'||i,5)
- Message newfilename
- ADDRESS COMMAND 'Copy CLONE' fullpath newfilename
-
- END
-
- EXIT
-