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!