|
After hours of research, I have backburner being called from a python script and rendering a test scene on 2 networked computers.
However, when I try to run a production file that has a long prerender command, backburner errors and exits. After some experimentation, it appears that there is a character limit to the command! When it reaches the limit, it truncates the command, generates an error like this and exits :
...setAttr ao_lyr.renderable 1; setAttr defaultRenderLayer.render[/4|ðâC'
from 'C:\Users\Me\AppData\Local\backburner\ServerJob'Job exit successful
Missing file name
The command should be ...setAttr defaultRenderLayer.renderable, 1; and then continue with more setAttrs & the rdir, scene name, etc.
I don’t know if the limit is imposed by maya, the command prompt, or Python. The python command (items not in quotes are vars that have been set in the script) is:
os.system (' cmdjob -jobName ' + jobName + params1 + numTasks + ' ' + mayaPath + ' -s ' + startF + ' -e ' + endF + ' -of png -fnc name.#.ext -pad 3 -im ' + imageName + ' -r mr -cam ' + renderCam + ' -alpha 0 -preRender ' + preRndrCmd + ' -log y:/renderLogs/ATR23_log.txt -rd ' + destPath + scene2Render )
To check if it might be some weird escape sequence being derived from a layer name, I have shortened the lists of layers that I am feeding to the prerender command, and that is not the problem. It seems to choke when it reaches a given number of characters.
Any ideas?
Thanks.
|