Go to: Synopsis. Return value. Flags. Python examples.
polySplitCtx2([adjustEdgeFlow=float], [constrainToEdges=boolean], [edgeMagnets=int], [exists=boolean], [image1=string], [image2=string], [image3=string], [insertWithEdgeFlow=boolean], [snapTolerance=float], [snappedToEdgeColor=[float, float, float]], [snappedToFaceColor=[float, float, float]], [snappedToMagnetColor=[float, float, float]], [snappedToVertexColor=[float, float, float]])
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
polySplitCtx2 is undoable, queryable, and editable.
Create a new context to split facets on polygonal objects
None
In query mode, return type is based on queried flag.
adjustEdgeFlow, constrainToEdges, edgeMagnets, exists, image1, image2, image3, insertWithEdgeFlow, snapTolerance, snappedToEdgeColor, snappedToFaceColor, snappedToMagnetColor, snappedToVertexColor
Long name (short name) |
Argument types |
Properties |
|
exists(ex)
|
boolean
|
|
|
Returns true or false depending upon whether the
specified object exists. Other flags are ignored.
|
|
image1(i1)
|
string
|
|
|
First of three possible icons representing the tool
associated with the context.
|
|
image2(i2)
|
string
|
|
|
Second of three possible icons representing the tool
associated with the context.
|
|
image3(i3)
|
string
|
|
|
Third of three possible icons representing the tool
associated with the context.
|
|
Flags from nodes |
adjustEdgeFlow(aef)
|
float
|
|
|
The weight value of the edge vertices to be positioned.
|
|
constrainToEdges(cte)
|
boolean
|
|
|
Enable/disable snapping to edge. If enabled any click in the
current face will snap to the closest valid edge. If there
is no valid edge, the click will be ignored.
NOTE: This is different from magnet snapping, which causes
the click to snap to certain points along the edge.
|
|
edgeMagnets(em)
|
int
|
|
|
number of extra magnets to snap onto, regularly spaced along the edge
|
|
insertWithEdgeFlow(ief)
|
boolean
|
|
|
True to enable edge flow. Otherwise, the edge flow is disabled.
|
|
snapTolerance(st)
|
float
|
|
|
precision for custom magnet snapping. Range[0,1]. Value 1
means any click on an edge will snap to either
extremities or magnets.
|
|
snappedToEdgeColor(sec)
|
[float, float, float]
|
|
|
snappedToFaceColor(sfc)
|
[float, float, float]
|
|
|
snappedToMagnetColor(smc)
|
[float, float, float]
|
|
|
Color for magnet snapping.
|
|
snappedToVertexColor(svc)
|
[float, float, float]
|
|
|
Color for vertex snapping.
|
|
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.
|
import maya.cmds as cmds
# Create a poly plane
cmds.polyPlane(w=10, h=10, sx=1, sy=1, n='pPlane1')
# Create a new poly split context, then switch to it
cmds.polySplitCtx2('polySplitCtx2')
cmds.setToolTo('polySplitCtx2')