You are on page 1of 1

//Start of LEFT ik to fk matching code

//Left Arm ik controls > fk controls snap


// Get the XYZ Translation values from the left arm pole vector "dummy" node
// We
float
float
float

do not care about the rotation from the dummy node


$LElbowDummyTX = `getAttr L_ik_elbow_dummy_loc.tx`;
$LElbowDummyTY = `getAttr L_ik_elbow_dummy_loc.ty`;
$LElbowDummyTZ = `getAttr L_ik_elbow_dummy_loc.tz`;

// 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

the left arm ik control to the "dummy" position


L_hand_IK_CTRL.tx $LwristDummyTX;
L_hand_IK_CTRL.ty $LwristDummyTY;
L_hand_IK_CTRL.tz $LwristDummyTZ;

// Rotate the left arm ik


setAttr L_hand_IK_CTRL.rx
setAttr L_hand_IK_CTRL.ry
setAttr L_hand_IK_CTRL.rz

control to the "dummy" position


$LwristDummyRX;
$LwristDummyRY;
$LwristDummyRZ;

//End of ik to fk matching code

You might also like