I have a script that renders out a thumbnail image from a scene. Previously I was using the “render” command:
tmpFileName = cmds.render(myCamera, x=128, y=128)
But now, the objects in the scene are using dx11shaders. So the objects are showing up bright green in the rendered image.
I discovered that I could use the “ogsRender” command to make the shaders work:
tmpFileName = cmds.ogsRender(camera=myCamera, w=128, h=128)
The problem is that the image is aliased. I tried using some of the command flags to set multisampling, but they only work in edit mode, and it didn’t work.
cmds.ogsRender(e=True, enableMultisample=True, activeMultisampleType=8)
print cmds.ogsRender(q=True, enableMultisample=True) # prints False
tmpFileName = cmds.ogsRender(camera=myCamera, w=128, h=128)
Does anyone know how I can set render options for this “ogsRender”?