New issue 136 by elrond79: PyNode('persp').__class__ yields strange Script
Editor results
http://code.google.com/p/pymel/issues/detail?id=136
If you enter this single line in the GUI Script Editor:
PyNode('persp').__class__
...then execute it, you will get:
# Result: #
Even more disturbing, if you execute it again, you get an error:
# Error: unbound method __unicode__() must be called with Transform
instance as first argument (got nothing instead)
# Traceback (most recent call last):
# File "<maya console>", line 1, in <module>
# File
"/Volumes/luma/_globalSoft/dev/paulm/python/pymel/pymel/core/general.py",
line 1364, in __new__
# import nodetypes
# TypeError: unbound method __unicode__() must be called with Transform
instance as first argument (got nothing instead) #
(This is in Linux 2009 x64.)
str(PyNode('persp').__class__)
will yield what we expect, so this is likely due to some weird processing
of output on maya's end.... but would still like to investigate.
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings