Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® Maya® / Python / Backburner command too big to succeed?
  RSS 2.0 ATOM  

Backburner command too big to succeed?
Rate this thread
 
62160
 
Permlink of this thread  
avatar
  • Total Posts: 25
  • Joined: 02 February 2007 10:32 AM

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 1setAttr 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.



Replies: 0