Go to: Synopsis. Flags. Return value. Related. Python examples.
polyDelVertex([constructionHistory=boolean], [name=string])
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
polyDelVertex is undoable, queryable, and editable.
Deletes vertices. Joins two edges which have a common vertex. The vertices must be connected to exactly two edges (so-called "winged").| Long name (short name) | [argument types] | Properties | ||
|---|---|---|---|---|
name(n)
|
string
|
|
||
|
||||
constructionHistory(ch)
|
boolean
|
|
||
|
||||
import maya.cmds as cmds cmds.polyPlane( n='plg' ) cmds.select( 'plg.vtx[59:61]' ) #These vertices are not winged, so they can not be deleted cmds.polyDelVertex() cmds.select( 'plg.e[93]', 'plg.e[95]', 'plg.e[97]', 'plg.e[114]', 'plg.e[116]', 'plg.e[118]' ) cmds.delete() cmds.select( 'plg.vtx[59:61]' ) #Now they are winged, as they are only connected to two edges. cmds.polyDelVertex() #Corners are winged, so they can be deleted cmds.select( 'plg.vtx[0]', 'plg.vtx[10]', 'plg.vtx[107]', 'plg.vtx[117]' ) cmds.polyDelVertex() cmds.select( 'plg' ) cmds.polyOptions( ao=True, dv=True )