Go to: Synopsis. Flags. Return value. Related. Python examples.
polySubdivideEdge([constructionHistory=boolean], [divisions=int], [name=string], [size=float], [worldSpace=boolean])
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
polySubdivideEdge is undoable, queryable, and editable.
Subdivides an edge into two or more subedges.
Default : divide edge into two edges of equal length.
constructionHistory, divisions, name, size, worldSpace
Flag can appear in Create mode of command
|
Flag can appear in Edit mode of command
|
Flag can appear in Query mode of command
|
Flag can have multiple arguments, passed either as a tuple or a list.
|
string The node name.
polyAppend, polyAppendVertex, polyBevel, polyChipOff, polyCreateFacet, polyExtrudeEdge, polyExtrudeFacet, polySmooth, polySplit, polySplitVertex, polySubdivideFacet, polyTriangulate
import maya.cmds as cmds
cmds.polyCube( n='plg', w=5, h=5, d=5 )
cmds.scale( 2, 2, 2 )
cmds.select( 'plg' )
cmds.polyOptions( ao=True, dv='true' )
cmds.select( cl=True )
#<I>simple subdivision</I>
cmds.select( 'plg.e[1]' )
cmds.polySubdivideEdge( dv=4 )
#The selected edges are subdivided by 4 vertices (5 subedges).
#<I>local bound</I>
cmds.select( 'plg.e[7]' )
cmds.polySubdivideEdge( dv=4, s=1.5 )
#The length of each subedge must be greater or equal to 1.5
#in local space. Length of original edge is 5 in local space.
#Min size indicates that only 3 subedges can be created.
#<I>world bound</I>
cmds.select( 'plg.e[5]' )
cmds.polySubdivideEdge( dv=4, s=2, ws=True )
#The length of each subedge has to be greater or equal to 2
#in world space. Length of original edge is 10 in world space.
#All required subdivisions are done.