PDA

View Full Version : Changing Joint Labels - otherType


orwoFf
11-15-2007, 08:08 AM
Hi,

What's the proper way to change the joint's label name?
I don't have any issues with changing the .side attr, then the type attr to OTHER,
but then if I try to change the otherType to custom string "name" it says it cannot find the otherType attribute on non of the joints.

orwoFf
11-15-2007, 10:01 AM
this was my code:

//sets label into "other" mode
setAttr($selJoint[$i] + ".type") 18;

// trying to repeat the command
// setAttr -type "string" head.otherType "head";
setAttr -type "string" ($selJoint[$i] + ".otherType" + " " + "\"" + $selJoint[$i] + "\"");

//ERROR: No object matches name: head.otherType "head"; //

I guess I should call the attribute in a different way?

Segmoria
11-15-2007, 10:35 AM
Try this instead: setAttr -type "string" ($selJoint[$i] + ".otherType") ($selJoint[$i]);

orwoFf
11-15-2007, 05:15 PM
much better thanx :)

CGTalk Moderation
11-15-2007, 05:15 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.