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


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.

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!