Go to: Synopsis. Return value. Flags. Python examples.

Synopsis

polySplitCtx2([constrainToEdges=boolean], [edgeMagnets=int], [snapTolerance=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

Return value

None

In query mode, return type is based on queried flag.

Flags

constrainToEdges, edgeMagnets, snapTolerance
Long name (short name) Argument types Properties
constrainToEdges(cte) boolean createqueryedit
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.
snapTolerance(st) float createqueryedit
precision for custom magnet snapping. Range[0,1]. Value 1 means any click on an edge will snap to either extremities or magnets.
edgeMagnets(em) int createqueryedit
number of extra magnets to snap onto, regularly spaced along the edge

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.

Python examples

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')