Professional Documents
Culture Documents
IK To FK Script
IK To FK Script
// Get the XYZ Translation values from the left Arm ik Control "dummy"
float $LwristDummyTX = `getAttr L_ik_wrist_dummy_loc.tx`;
float $LwristDummyTY = `getAttr L_ik_wrist_dummy_loc.ty`;
float $LwristDummyTZ = `getAttr L_ik_wrist_dummy_loc.tz`;
// Get the XYZ Rotation values from the left Arm ik Control "dummy"
float $LwristDummyRX = `getAttr L_ik_wrist_dummy_loc.rx`;
float $LwristDummyRY = `getAttr L_ik_wrist_dummy_loc.ry`;
float $LwristDummyRZ = `getAttr L_ik_wrist_dummy_loc.rz`;
//Move the Left arm Pole Vector control to the "dummy" position
setAttr L_elbow_IK_CTRL.tx $LElbowDummyTX;
setAttr L_elbow_IK_CTRL.ty $LElbowDummyTY;
setAttr L_elbow_IK_CTRL.tz $LElbowDummyTZ;
// Move
setAttr
setAttr
setAttr