Try taking a look at this method of formatting your command. Its a lot easier 
to handle all the quoting without escaping, and see exactly what command you 
are defining:

http://pastebin.com/2U2NCVkJ

Maybe this method might actually address your issue?


On Nov 22, 2011, at 11:11 AM, PixelMuncher wrote:

> Also, I did try surrounding my os cmd with quotes and escaped quotes.
> It doesn't like unescaped quotes at all.
> With escaped quotes, It sees the 2nd escaped quote as an attempt to
> create a line continuation.
> However, that may be all that's needed to get this working at this
> point:
> 
> os.system (\" ' cmdjob -jobName ' + jobName + params  + taskListFile +
> ' -taskName 1 ' + mayaPath + ' -s ' + %tp2 + ' -e ' + %tp3 + ' -of png
> -fnc name.#.ext -pad 3 -im ' + imageName + ' -r mr -cam ' + renderCam
> + ' -alpha 0 ' + ' -log z:/renderLogs/ATR24_log.txt -rd ' + destPath +
> scene2Render \")
> 
> -- 
> 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

Reply via email to