Hello everyone.

I try to render a scene using python render command with Maya2009. In
maya interface, render is working but if I use mayapy.exe program, my
render freeze (no error, just freeze). If I use MEL render command,
render is working.

My render freeze only when I assign a surface shader on a mesh.


I’ve made a sample in attachment:

- renderPy.bat launch mayapy.exe (in maya 2009 folder) and run script
render.py

- renderMel.bat launch mayabatch.exe (in maya 2009 folder) and run
script render.mel


render.py and render.mel contain exactly same commands: set workgroup,
open scene and render image


Each script render test_ok.ma (a cube with a lambert shader) and
test_freeze.ma (same cube with a surfaceshader and koala.jpg picture)


Do you have any idea why render command freeze in python
implementation?


Thanks

PS: Script seems working with Maya 2008 x86 and x64, Maya 2009 x86 and
x64 and seems to freeze on Maya 2009SP1 x64, Maya 2010 x86 and x64

Attachment test: http://www.sendspace.com/file/fk6jbx

--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/python_inside_maya
-~----------~----~----~----~------~----~------~--~---

Reply via email to