PDA

View Full Version : attr problems


twidup
07-28-2003, 01:54 PM
addAttr
-ln boneLength
-sn bl
-bt BL
-at "float"
-r 1
-w 0
($parent+"_Bone");

setAttr -l 0 -k 1 ($parent+"_Bone.boneLength") $jntDis;

any idea why two things happen when I run this
1: it doesnt show up under extra attributes, but when you look up what attr are on that item, its there.

and
2: how do I get it to display on the channel box?

GDC
07-28-2003, 04:50 PM
You need to make the attribute writable. Either change you addAttr line to -w 1 or just leave the -w out all together.

--g

twidup
07-28-2003, 09:33 PM
ok, solved it shortly after postin by taking all the unneeded flags out and adding the -k 1 in so that tis keyable.

Its good to know that was part of what was causing it.

-Todd

CGTalk Moderation
01-15-2006, 06:00 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.