The input file should read: farm_test_v2.####.exr
one period after the version and drop the “(multichannel)”
I would also expect the output to be : farm_test_v2.mov instead of added the addtional periods
I think I may know where the extra period in the input name is coming from but not sure why it’s trickling all the way down to here. Since in Maya vray incorrectly strips out the period and forces image####.ext instead of image.####.ext on multichannel exrs we cheat it by adding a . to the name ie image. is the file name in Maya’s render global
more specifically we use /.
Is there a way to correct for this… Also the (multichannel) tag shows up in several areas of deadline so I’m not sure where that is originating from as there is nothing in Maya that I see includes that
[size=150]Drop the " (multichannel)"[/size]
Add this near the top of your Draft script, along with the other import lines:
import re
Somewhere in your script, you’ll have a line like:
inFilePattern = params['inFile']
Replace this with:inFilePattern = params['inFile']
inFilePattern = re.sub( ' \(multichannel\)$', '', inFilePattern )
This replaces ’ (multichannel)’ at the end of inFilePattern with an empty string to remove it.
[size=150]Remove the extra periods from your file name[/size]
Add this near the top of your Draft script, if it’s not there already:
import re
Somewhere in your script, you probably have a line like:
(outBase, outExt)= os.path.splitext( params['outFile'] )
Replace this with:(outDirectory, outFilename) = os.path.split( params['outFile'] )
outFilename = re.sub( '\.+', '.', outFilename )
outFile = os.path.join( outDirectory, outFilename )
(outBase, outExt) = os.path.splitext( outFile )
The re.sub() line searches for repeated periods, and replaces them with a single period. We’re only doing this on the filename part of the outFile, and not the directory part, in case you have a ‘…’ relative path in the directory.
Please let us know if you have any questions about this.