Does anyone know if it is possible to inherit the pymel Transform class ?
myObj = pymel.core.nodetypes.Transform('pCube1')
myObj.getTranslation()
# Result: dt.Vector([0.0, 0.0, 0.0]) #
....so....using the class Transform is fine. but.... :
class myNewClass(pymel.core.nodetypes.Transform):
def __init__(self):
pass
results in :
# TypeError: Determined type is Transform, which is not a subclass of desired
type myNewClass #
???? Any ideas?
--
You received this message because you are subscribed to the Google Groups
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.