I havent had a chance to test anything yet but have you tried moving your preRender commands into a script and just calling the proc from the preRender flag? That way you can have any length prerender and it will get called from the script. If the prerender code is not in a shared maya_script_path location then u can just source the full path from the preRender flag Unless your preRender is over 8k characters long then you wouldn't be hitting an arg limit for the windows command line. And you are using a string arg (though using inefficient string concatenation) for your os.system() call so thats probably not an issue. If putting the preRender commands into a script fixes it then you know its backburner/maya. We do the same thing at my studio for queue submissions using preRender scripts in network locations and sourcing them.
On Nov 21, 2011, at 10:36 PM, PixelMuncher <[email protected]> wrote: > 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 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 > The command should be ...setAttr defaultRenderLayer.renderable, 1; and > then continue with more setAttrs > > 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. > > -- > view archives: http://groups.google.com/group/python_inside_maya > change your subscription settings: > http://groups.google.com/group/python_inside_maya/subscribe -- view archives: http://groups.google.com/group/python_inside_maya change your subscription settings: http://groups.google.com/group/python_inside_maya/subscribe
