Split the given mesh by selecting continuous edges

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()
原文地址:https://www.cnblogs.com/JimmyCode/p/1983645.html