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()

 

posted @ 2011-03-14 13:41  GamePal  阅读(213)  评论(0编辑  收藏  举报