tags:

views:

126

answers:

1

Hi there,

Everytime I create a new IK handle in Maya via MEL, it creates an end effector named "effector1", or "effector2", depending on what is in my scene. I don't want to rely on the auto-name of the end effector, so I'm wondering if there is a way to either:

a) name the effector at the create-time of the IK handle, or

b) select the effector for a particular IK handle in MEL.

Any help would be greatly appreciated -- thanks!

+2  A: 

Here's how you can get and rename the end effector of a particular handle named ikHandle1:

string $ee = `ikHandle -q -endEffector ikHandle1`; 
// Result: effector1 //  
rename $ee "mynewname"; 
// Result: mynewname //
kb