pymel.core.general.polySplitCtx2

polySplitCtx2(*args, **kwargs)

Create a new context to split facets on polygonal objects In query mode, return type is based on queried flag.

Flags:

Long Name / Short Name Argument Types Properties
adjustEdgeFlow / aef float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
  The weight value of the edge vertices to be positioned.
constrainToEdges / cte bool ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
  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.
detachEdges / de bool  
   
edgeMagnets / em int ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
  number of extra magnets to snap onto, regularly spaced along the edge
exists / ex bool ../../../_images/create.gif
  Returns true or false depending upon whether the specified object exists. Other flags are ignored.
highlightPointColor / hpc float, float, float  
   
image1 / i1 unicode ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
  First of three possible icons representing the tool associated with the context.
image2 / i2 unicode ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
  Second of three possible icons representing the tool associated with the context.
image3 / i3 unicode ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
  Third of three possible icons representing the tool associated with the context. Flags from nodes
insertWithEdgeFlow / ief bool ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
  True to enable edge flow. Otherwise, the edge flow is disabled.
snapTolerance / st float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
  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 ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
  Color for edge snapping.
snappedToFaceColor / sfc float, float, float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
  Color for face snapping.
snappedToMagnetColor / smc float, float, float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
  Color for magnet snapping.
snappedToVertexColor / svc float, float, float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
  Color for vertex snapping. Flag can have multiple arguments, passed either as a tuple or a list.
snappingTolerance / st float  
   
splitLineColor / slc float, float, float  
   

Derived from mel command maya.cmds.polySplitCtx2

Example:

import pymel.core as pm

# Create a poly plane
pm.polyPlane(w=10, h=10, sx=1, sy=1, n='pPlane1')

# Create a new poly split context, then switch to it
pm.polySplitCtx2('polySplitCtx2')
pm.setToolTo('polySplitCtx2')