PDA

View Full Version : script editor - selection shows full hierarchy?


thinboy
11-14-2009, 05:49 AM
With Maya7 I am using zooDagProc to imbed some IKFKswitching commands into a controller. In the script editor it is printing out the entire hierarchy of the controller instead of simply printing the controller's name when it is selected.

for example:
It is printing this - MasterCon | controllerGRP | IKcontrolGRP | ik_armCON.

Is this a preference that I turned on by mistake? only a few of the controllers in this scene do this. The mel commands needs only the controller's name for it to work but instead it is receiving an entire array.

Has anyone encountered this glitch?
Thanks

norbertnacu
11-14-2009, 10:42 AM
Hi There,
Maya needs to print the full DAG path, if your node names are not unique:

// ie..
// Lets say you have two ctrl node called:

foo1|bar|headCtrl
foo2|bar|headCtrl



// If you select the first headCtrl node, it's not going to print the
// short DAG path, because you have two ctrl node called headCtrl

select -r headCtrl


// Maya will actually print the full DAG path, because headCtrl name exists
// in a different hierchy. Here's what its going to print instead.

select -r foo1|bar|headCtrl


Thank You,
Norbert Nacu

thinboy
11-14-2009, 05:30 PM
Ha! that is so simple. I am always making unique names for things that I never noticed this feature in Maya, thanks again.

CGTalk Moderation
11-14-2009, 05:30 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.