Trying to render with Maya Hardware 2.0

474 views
Skip to first unread message

I73

unread,
Nov 4, 2016, 1:56:18 PM11/4/16
to Python Programming for Autodesk Maya
Hello all, I am a little confused when it comes to the issue I am having. 
When trying to render out with either Python or mel it's rendering out my custom Shader (It will render it in the Render view Viewport but it will not export the image), If I render it out manually it will display and save the rendered image.

Is there a difference between the render function I am calling and the default manual render? If so how can I render these images out?

I am setting the globals beforehand:
cmds.setAttr("defaultRenderGlobals.currentRenderer", l=False) 
cmds.setAttr("defaultRenderGlobals.currentRenderer", "mayaHardware2", type="string")

as well as my workspace directory, 

Thanks so much guys! 

I73

unread,
Nov 4, 2016, 2:21:18 PM11/4/16
to Python Programming for Autodesk Maya
Okay I have it working with 
cmds.ogsRender()

Just testing some more stuff, 
Reply all
Reply to author
Forward
0 new messages