LumaPictures / pymel

Python in Maya Done Right
Other
490 stars 131 forks source link

ui.RenderWindowEditor().getDisplayImage() fails #253

Open pmolodo opened 9 years ago

pmolodo commented 9 years ago

From felix.ul...@gmx.de on November 29, 2010 03:34:54

Describe the problem. Calling ui.RenderWindowEditor('renderView').getDisplayImage() throws a runtime error. What Version of Maya are you using? 2011 SP1 On what operating system? (be as specific as possible and include service packs, 64bit vs 32bit, etc) CentOS plus 5.5 64 bit, Windows XP SP 3 32bit What Version of PyMEL are you using? 1.0.2 What is the expected output? What do you see instead? The expected output is the number of the currently selected stored image in the renderview window (when a renderview window is open), or -1 if there is no image kept. The following output is given:

Error: renderWindowEditor: Object 'TearOffPane|renderView' not found.

Traceback (most recent call last):

File "", line 1, in

File "C:\Programme\Autodesk\Maya2011\Python\lib\site-packages\pymel\internal\factories.py", line 862, in wrappedMelFunc

return inFunc( self, *_kwargs )

File "C:\Programme\Autodesk\Maya2011\Python\lib\site-packages\pymel\internal\factories.py", line 588, in newUiFunc

return beforeUiFunc(_args, *_kwargs)

File "C:\Programme\Autodesk\Maya2011\Python\lib\site-packages\pymel\internal\pmcmds.py", line 98, in wrappedCmd

res = new_cmd(_new_args, **new_kwargs)

RuntimeError: renderWindowEditor: Object 'TearOffPane|renderView' not found. # If possible, provide a few lines of code to reproduce the problem. It helps us if your code will reproduce the problem from a new scene. ui.RenderWindowEditor('renderView').getDisplayImage() Does maya.cmds exhibit the same problem? No, maya.cmds.renderWindowEditor('renderView', q=1, displayImage=1) works ok. Please provide any additional information below.

Original issue: http://code.google.com/p/pymel/issues/detail?id=219

pmolodo commented 9 years ago

From felix.ul...@gmx.de on November 29, 2010 03:37:11

sorry, the error message contains wrong line numbers, it should be:

Error: renderWindowEditor: Object 'TearOffPane|renderView' not found.

Traceback (most recent call last):

File "", line 1, in

File "C:\Programme\Autodesk\Maya2011\Python\lib\site-packages\pymel\internal\factories.py", line 915, in wrappedMelFunc

return inFunc( self, *_kwargs )

File "C:\Programme\Autodesk\Maya2011\Python\lib\site-packages\pymel\internal\factories.py", line 644, in newUiFunc

return beforeUiFunc(_args, *_kwargs)

File "C:\Programme\Autodesk\Maya2011\Python\lib\site-packages\pymel\internal\pmcmds.py", line 98, in wrappedCmd

res = new_cmd(_new_args, **new_kwargs)

RuntimeError: renderWindowEditor: Object 'TearOffPane|renderView' not found.

pmolodo commented 9 years ago

From elron...@gmail.com on January 17, 2011 00:50:22

Status: Accepted
Owner: chadrik

pmolodo commented 9 years ago

From elron...@gmail.com on January 18, 2011 14:56:51

Labels: Type-Defect