How to render a single frame with Renderman in Standalone Maya?


#1

Hello everybody,

I’m looking for a possibility to render a single frame with Renderman, but in Maya Standalone. I’ve already tried a couple of options, e.g.

# Script.py
cmds.loadPlugin("RenderMan_for_Maya.py")
cmds.file(filename, o=True, f=True)

if cmds.getAttr("defaultRenderGlobals.currentRenderer") != "renderman":
    mel.eval("setCurrentRenderer renderman")

mel.eval("renderWindowRender redoPreviousRender renderView;")
cmds.renderWindowEditor("renderView", e=True, colorManage=True, writeImage=output_dir)

That doesn’t work because I assume it relies on the UI.

Is there another option?

Thanks in advance!