Hi all,
I’m trying to write a MEL script that will set all joints within a skeleton DOF to on and rotation limits to off. The lines to set them would be as below, but what I think I need to do is build an array to list all the joint names to put into the lines to set the attributes for all the joints in the skeleton. Any help appreciated.
$jointID[]
setAttr "$jointID.jointTypeX" 1;
setAttr "$jointID.jointTypeY" 1;
setAttr "$jointID.jointTypeZ" 1;
transformLimits -rx -360 360 -erx 0 0 $jointID;
transformLimits -ry -360 360 -ery 0 0 $jointID;
transformLimits -rz -360 360 -erz 0 0 $jointID;