Go to: Synopsis. Flags. Return value. Python examples.
polySplitEdge([constructionHistory=boolean], [name=string])
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
polySplitEdge is undoable, queryable, and editable.
Split Edges.| Long name (short name) | [argument types] | Properties | ||
|---|---|---|---|---|
name(n)
|
string
|
|
||
|
||||
constructionHistory(ch)
|
boolean
|
|
||
|
||||
import maya.cmds as cmds cmds.polyPlane( w=1, h=1, sx=10, sy=10, ax=(0, 1, 0), cuv=1, ch=1 ) cmds.scale( 15, 15, 15, r=True ) cmds.move( -8, 0, 6, r=True ) cmds.select( 'polyPlane1', addFirst=True ) cmds.setAttr( 'polyPlane1.subdivisionsWidth', 3 ) cmds.setAttr( 'polyPlane1.subdivisionsHeight', 3 ) cmds.select( 'pPlane1.e[12]', r=True ) cmds.polyExtrudeEdge( 'pPlane1.e[12]', ch=1, kft=0, pvx=-5.5, pvy=0.0, pvz=6.0 ) # Result: polyExtrudeEdge1 # cmds.setAttr( 'polyExtrudeEdge1.localTranslate', 0, 0, 5.093611) cmds.select( 'pPlane1.e[12]', r=True ) cmds.polySplitEdge() # Result: polySplitEdge1 # # The edge is now split.. cmds.select( 'pPlane1.f[9]', r=True) cmds.move(0, 0.5, 0, r=True)