hey Guys
I think I am totally thinking wrong about this, please explain.
so I would like to inherit the nt.Transform and i am not sure how to do it.
for example can I do this?
*import pymel.core as pm
class MyTrans(pm.nt.Transform):
t = "test"
n = MyTrans("pCube1")
#does not work
*
I am trying to do this:
Let say I have a rig control and it is a Maya transform but it also has a
bunch of my rig specific info on it like custom attributes.
I would like to make a class for this control that could be used to quickly
get info about it or perform different functions on it.
so i can do thinks like
*n = MyTrans("ctrl1")
n.getRotation() #from nt.Transform
and
n.getBodypart() #added by me
thanks
Yury
*
--
view archives: http://groups.google.com/group/python_inside_maya
change your subscription settings:
http://groups.google.com/group/python_inside_maya/subscribe