////////////////////////////////////////////////////////////// // resetBindPose.mel // // Sean Nolan // sean@snolan.net // // Resets bindPose for all joints in the skinCluster. // Select a skin and run script. // // Handy if you need to add more joints to geo but you // get an error like.. // Error: Skin on joint was bound at a different pose. // Go to the bindPose to add an influence object. //////////////////////////////////////////////////////////// global proc resetBindPose() { string $selSkin[] = `ls -sl`; string $infObj[] = `skinCluster -q -inf $selSkin[0]`; select -r $infObj; string $selJoints[] = `ls -sl`; string $bind[] = `dagPose -q -bindPose`; dagPose -reset $bind[0] $selJoints; print ($bind[0] + " is reset"); select -cl; }