macroScript mayaOrientConstrain category:"3dgill Tools - Rigging" tooltip:"mayaOrientConstrain" buttonText:"Orient Con" ( if $ != undefined do ( totalObjects = 0 for selectedObjs in $ do totalObjects = totalObjects + 1 if totalObjects > 1 do ( $[totalObjects].rotation.controller = Orientation_Constraint () totalMasterObjs = totalObjects - 1 for masterObj = 1 to totalMasterObjs do $[totalObjects].rotation.controller.appendTarget $[masterObj] 50 select $[totalObjects] ) ) )