Message 1 of 3
Save render image in python?
Not applicable
07-11-2010
09:08 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
i want save my rendered images(render currentFrame)
and i write python like this:
there is the error
Error: RuntimeError: Only one instance of this panel type allowed: renderWindowEditor
how can i fix it?
can you give me a right code?
thank you
and i write python like this:
import maya.cmds as mc
import maya.mel as mm
mm.eval('renderWindowRender redoPreviousRender renderView')
editor = mc.renderWindowEditor()
mc.renderWindowEditor(editor, e=True, writeImage='D:/maya_proj//images/a.iff')
there is the error
Error: RuntimeError: Only one instance of this panel type allowed: renderWindowEditor
how can i fix it?
can you give me a right code?
thank you