PDA

View Full Version : Adding Attributes problem


fischerj
08-04-2006, 05:37 PM
I'm new to MEL and I'm working on doing some auto rigging scripts. I'm not able to add and attribute to the controls using the variables. I have got this to work on my leg rig script but now I can't get it to work for the arm. Here is the part of the script I'm having trouble with.

addAttr -ln ikFkSwitch -at double -min - 0 -max 1 -dv 0 $clavicleCtrl;

setAttr -e -keyable true ($clavicleCtrl +".ikFkSwitch");

Also, I added a prefix earlier in the script so maybe that has something to do with it? This seems like it should be simple, but I just can't get it to work. Any help would be great!

FunkyT
08-05-2006, 09:25 AM
addAttr -ln ikFkSwitch -at double -min - 0 -max 1 -dv 0 $clavicleCtrl;



no worries. just a typo, get rid of that dash between min and 0. should be:

addAttr -ln ikFkSwitch -at double -min 0 -max 1 -dv 0 $clavicleCtrl;

CGTalk Moderation
08-05-2006, 09:25 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.