I’m writing a rendering script, and I have a couple of problems.
When I set the defaultRenderGlobals.imageFilePrefix to an arbitrary directory, maya adds ‘_tmp’ to the end of the file name.
When I call
cmds.render()
It renders a mesh with a standard shading, but it doesn’t render a mesh with my custom (plugin) hardware shader. If I press within the UI the ‘render the current frame’ button, then the rendering is fine.