Thanks Paul I will look at these today Yury
On Wed, Jun 20, 2012 at 7:09 PM, Paul Molodowitch <[email protected]>wrote: > Hi Yury - what you're looking for is pymel "virtual classes" - there's an > example here: > > https://raw.github.com/LumaPictures/pymel/master/examples/customClasses.py > > Or, Jason Parks has kindly written up a nice little tutorial: > > http://www.jason-parks.com/artoftech/?p=225 > > Let me know if there's anything you have questions about! > > - paul > > > On Wed, Jun 20, 2012 at 3:30 PM, ynedelin <[email protected]> wrote: > >> 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 >> > > -- > view archives: http://groups.google.com/group/python_inside_maya > change your subscription settings: > http://groups.google.com/group/python_inside_maya/subscribe > -- view archives: http://groups.google.com/group/python_inside_maya change your subscription settings: http://groups.google.com/group/python_inside_maya/subscribe
