//James Parks //01-11-02 //ConstraintSnap //select source of tranforms and then target /////////////////////////// //Constraint Snap procedure /////////////////////////// global proc jpConstraintSnap(string $master, string $slave) { select -cl; select $master; select -add $slave; //create constraints catch(`pointConstraint -n tempPoint -weight 1`); catch(`orientConstraint -n tempOrient -weight 1`); catch(`scaleConstraint -n tempScale -weight 1`); //delete constraints -> leaving transform information catch(`select tempPoint`); catch(`select -add tempOrient`); catch(`select -add tempScale`); delete; }//end proc jpConstraintSnap