Transform.name() is a convenience method which just returns the value of
the Transform._name attribute which probably gets set upon instantiation of
the Transform class.
Put some of this code in a script, set a breakpoint on it in WingIDE and
step through the creation of the node and then the running of the name()
method if you really want to see what PyMEL is doing underneath the hood.
-jason
On Wednesday, September 19, 2012 12:29:06 PM UTC-7, DayDreamer wrote:
>
> Hi, I was just going around on pymel structure. I have a query regarding
> it.
>
> when I do,
>
> # instantiate a maya node
> pNode = nt.Transform('null1')
>
> # use it
> print pNode.name()
>
> How pNode(instance) stores(or know) that its attached to maya node(null1)
> . Does its stores the maya node name in __melnode__ and calls this variable
> and uses it ?
>
> Thanks
>
> Day Dreamer
>
--
view archives: http://groups.google.com/group/python_inside_maya
change your subscription settings:
http://groups.google.com/group/python_inside_maya/subscribe