-- PolyBridge -- by Andreas "real08121985" Meissner -- 25.02.2010 macroScript mcrPolyBridge category:"Editable Polygon Object" tooltip:"PolyBridge" ( on execute do ( -- CHECK only 1 object selected? if selection.count == 1 do ( local bEditPolyObj = classof $ == Editable_Poly -- is baseobject an editpoly? local bBaseObjSel = superclassof (modpanel.getCurrentObject()) != modifier -- is baseobject selected? -- IF baseobject selected and baseobject is an editable poly THEN bridge edges of baseobject if bBaseObjSel and bEditPolyObj then ( $.bridgeSelected = 1 $.EditablePoly.Bridge() -- ELSE IF modifier selected DO TRY bdrige edges of selected modifier ) else if $.modifiers.count > 0 and not bBaseObjSel do ( local iSelMod = modPanel.getModifierIndex $ (modpanel.getCurrentObject()) -- selected modifier index try $.modifiers[iSelMod].ButtonOp #BridgeEdge catch() ) ) ) )