Go to: Synopsis. Return value. Flags. MEL examples.
polySplitCtx [-enablesnap boolean] [-exists] [-image1 string] [-image2 string] [-image3 string] [-magnetsnap int] [-precsnap float] [-smoothingangle angle] [-snaptoedge boolean] [-subdivision int]
polySplitCtx 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.
enablesnap, exists, image1, image2, image3, magnetsnap, precsnap, smoothingangle, snaptoedge, subdivision
Long name (short name) |
Argument types |
Properties |
|
-enablesnap(-es)
|
boolean
|
|
|
Enable/disable custom magnet snapping to start/middle/end of edge
|
|
-exists(-ex)
|
|
|
|
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.
|
|
-magnetsnap(-ms)
|
int
|
|
|
number of extra magnets to snap onto, regularly spaced along the edge
|
|
-precsnap(-ps)
|
float
|
|
|
precision for custom magnet snapping. Range[0,100]. Value 100
means any click on an edge will snap to either
extremities or magnets.
|
|
-smoothingangle(-sma)
|
angle
|
|
|
the threshold that controls whether newly created edges are hard or soft
|
|
-snaptoedge(-ste)
|
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.
|
|
-subdivision(-s)
|
int
|
|
|
number of sub-edges to add between 2 consecutive edge
points. Default is 1.
|
|
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 be used more than once in a command.
|
// Create a poly plane
polyPlane -w 10 -h 10 -sx 1 -sy 1 -n pPlane1;
// Create a new poly split context, then switch to it
polySplitCtx polySplitCtx1;
setToolTo polySplitCtx1;