View Full Version : setAttr -keyable
dwalden74 01-04-2003, 10:45 AM Anybody know why this works:
setAttr -lock true sphere.rotate
but this doesnīt:
setAttr -keyable false sphere.rotate
???
:beer:
David
|
|
svenip
01-04-2003, 10:54 AM
worx fine for me. maybe it`s because you forgot to say which rotate
setAttr -keyable false sphere.rotateX; as example
dwalden74
01-04-2003, 12:19 PM
No, thatīs not what I mean. Iīll explain better:
With
setAttr -lock true sphere.rotate (or simply "sphere.r")
you lock all rotations on object "sphere" in one go. Itīs like doing
setAttr -lock true sphere.rx
setAttr -lock true sphere.ry
setAttr -lock true sphere.rz
However with the -keyable flag, this is not the case. The command executes, the attributes are not made unkeyable. Iīm just wondering why?
-David
Sanctuary
01-04-2003, 08:43 PM
-keyable can appear in create mode ONLY
dwalden74
01-05-2003, 08:15 AM
uhh....what? I donīt follow you.
Sanctuary
01-05-2003, 08:43 PM
try this ...
file -f -new;
spaceLocator -p 0 0 0; move -r 0 6 0 ;
addAttr -ln "pose" -dt "string" -keyable true locator1;
scriptEditorInfo -ch;
string $xxx = `getAttr -keyable locator1.pose`;
print ("attr is : " + $xxx + "\n");
setAttr -keyable false locator1.pose;
string $xxx = `getAttr -keyable locator1.pose`;
print ("attr is : " + $xxx + "\n");
dwalden74
01-06-2003, 09:57 AM
yup, tried it... What does that have to do with my question though???
Try this:
sphere -n sphere;
setAttr -lock true sphere.t;
setAttr -keyable false sphere.r;
Why doesnīthe last line hide all rotations?
:hmm:
Sanctuary
01-06-2003, 02:36 PM
-keyable false doen`t mean will remove all rotations from Channel Box :D ...
keyable simply let an attribute bo be keyed or not
dwalden74
01-06-2003, 04:49 PM
keyable simply let an attribute bo be keyed or not
Yes, this is obvious, but why doesnīt it work then?
"setAttr -keyable false sphere.r" should make all rotations non-keyable. Why should this not work?
:insane:
dwalden74
01-06-2003, 04:51 PM
Another thing, you said earlier that the -keyable flag was for create mode, and not for edit mode. This is not true. When I do:
setAttr -keyable false sphere.tx
Iīm editing an existing attribute. Donīt you think?
Sanctuary
01-06-2003, 09:44 PM
Another thing, you said earlier that the -keyable flag was for create mode, and not for edit mode. This is not true.
well, that`s what AW documetation say ... not my fault, you can check for yourself
Sanctuary
01-06-2003, 09:50 PM
Yes, this is obvious, but why doesnīt it work then?
"setAttr -keyable false sphere.r" should make all rotations non-keyable. Why should this not work?
:insane:
i don`t know.
maybe it`s a bug (don`t think so) ... but if you edit all 3 attr one by one it works, after you can see is not working for traslations as well ... so, maybe isn`t suppose to edit all 3 at once
CGTalk Moderation
01-14-2006, 02:00 AM
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.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.