PDA

View Full Version : setting AdvancedTwist World-Up Obj with MEL?


DangerAhead
09-15-2006, 08:56 PM
How do you set this value with MEL?

the advanced twist is enabled with this code:

setAttr "ikh.dTwistControlEnable" 1;
setAttr ikh.dWorldUpType 1;

// ANSWER:
connectAttr -f upVector_loc.worldMatrix[0] ikh.dWorldUpMatrix;


but how do you set this?
http://www.negative13.com/images/advancedTwistObjUp.jpg

I figured it out so ... nevermind

micle
09-16-2006, 12:21 PM
connectAttr -f ($obj1+".worldMatrix[0]") ($ik+".dWorldUpMatrix");
connectAttr -f ($obj2l+".worldMatrix[0]") ($ik+".dWorldUpMatrixEnd");

bye:buttrock:

CGTalk Moderation
09-16-2006, 12:21 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.