import maya.cmds as cmds
def edgeCutter():
cmds.polySplitEdge() #split one or more edges so that each face that shared the vertex acquires its own copy of the edge
objName = cmds.ls(hilite = True) #getobject name
cmds.select(objName)
cmds.polySeparate() #create a newobjectfor each section of the mesh that is distinct
cmds.delete(ch=True)
edgeCutter()
def edgeCutter():
cmds.polySplitEdge() #split one or more edges so that each face that shared the vertex acquires its own copy of the edge
objName = cmds.ls(hilite = True) #getobject name
cmds.select(objName)
cmds.polySeparate() #create a newobjectfor each section of the mesh that is distinct
cmds.delete(ch=True)
edgeCutter()