If I try to create a PyNode with a custom shape node: newNode = PyNode
('myCustomShape')
I get the following error:

newNode = PyNode('myCustomShape')
# Error: object.__new__(X): X is not a type object (function)
# Traceback (most recent call last):
#   File "<maya console>", line 1, in <module>
#   File "d:\depot\toystory3\main\build\tools\maya\common\python\pymel
\core\general.py", line 1433, in __new__
#     self = super(PyNode, cls).__new__(newcls)
# TypeError: object.__new__(X): X is not a type object (function) #

I'm not a python guru, but it looks like PyMel doesn't recognize the
node type.  Shouldn't PyMel be loading custom node types when the
module is imported?

-- 
http://groups.google.com/group/python_inside_maya

Reply via email to