ECToo / pymel

Automatically exported from code.google.com/p/pymel
0 stars 0 forks source link

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

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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 "<maya console>", line 1, in <module>
#   File 
"C:\Programme\Autodesk\Maya2011\Python\lib\site-packages\pymel\internal\factorie
s.py", line 862, in wrappedMelFunc
#     return inFunc( self, **kwargs )
#   File 
"C:\Programme\Autodesk\Maya2011\Python\lib\site-packages\pymel\internal\factorie
s.py", line 588, in newUiFunc
#     return beforeUiFunc(*args, **kwargs)
#   File 
"C:\Programme\Autodesk\Maya2011\Python\lib\site-packages\pymel\internal\pmcmds.p
y", 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 reported on code.google.com by felix.ul...@gmx.de on 29 Nov 2010 at 11:34

GoogleCodeExporter commented 9 years ago
sorry, the error message contains wrong line numbers, it should be:

# Error: renderWindowEditor: Object 'TearOffPane|renderView' not found.
# Traceback (most recent call last):
#   File "<maya console>", line 1, in <module>
#   File 
"C:\Programme\Autodesk\Maya2011\Python\lib\site-packages\pymel\internal\factorie
s.py", line 915, in wrappedMelFunc
#     return inFunc( self, **kwargs )
#   File 
"C:\Programme\Autodesk\Maya2011\Python\lib\site-packages\pymel\internal\factorie
s.py", line 644, in newUiFunc
#     return beforeUiFunc(*args, **kwargs)
#   File 
"C:\Programme\Autodesk\Maya2011\Python\lib\site-packages\pymel\internal\pmcmds.p
y", line 98, in wrappedCmd
#     res = new_cmd(*new_args, **new_kwargs)
# RuntimeError: renderWindowEditor: Object 'TearOffPane|renderView' not found. 
# 

Original comment by felix.ul...@gmx.de on 29 Nov 2010 at 11:37

GoogleCodeExporter commented 9 years ago

Original comment by elron...@gmail.com on 17 Jan 2011 at 8:50

GoogleCodeExporter commented 9 years ago

Original comment by elron...@gmail.com on 18 Jan 2011 at 10:56