pymel.core.context.polySelectEditCtx

polySelectEditCtx(*args, **kwargs)

Create a new context to select and edit polygonal objects

Flags:

Long Name / Short Name Argument Types Properties
absoluteOffset / abo bool ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
  This flag is deprecated. Use splitType/stp instead. This flag is deprecated. Use splitType/stp instead.
adjustEdgeFlow / aef float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
  The weight value of the edge vertices to be positioned. Default:1.0f
autoComplete / ac bool ../../../_images/create.gif
  If true then use auto completion on selections
deleteEdge / de bool ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
  When true, the end edges are deleted so the end triangles are converted to quads.
divisions / div int ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
  Number of divisions. Default:2
endVertexOffset / evo float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
  Weight value controlling the offset of the end vertex of the edgeloop.
exists / ex bool ../../../_images/create.gif
  Returns true or false depending upon whether the specified object exists. Other flags are ignored.
fixQuads / fq bool ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
  Fixes splits which go across a quad face leaving a 5 and 3 sided faces by splitting from the middle of the new edge to the vertex accross from the edge on the 5 sided face. Default:false
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.
insertWithEdgeFlow / ief bool ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
  True to enable edge flow. Otherwise, the edge flow is disabled. Default:false
mode / m int ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
  which mode to work on. Available modes are 1-loop and 2-ring
smoothingAngle / sma float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
  Angle below which new edges will be smoothed Default:kPi
splitType / stp int ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
  Format: 0 - Absolute, 1 - Relative, 2 - Multi Default:TdnpolySplitRing::Relative
startVertexOffset / svo float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
  Weight value controlling the offset of the start vertex of the edgeloop. Flag can have multiple arguments, passed either as a tuple or a list.
useEqualMultiplier / uem bool ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
  Changes how the profile curve effects the offset when doing a multisplit. If true then the verts will be offset the same distance based on the shortest edge being split. If false then each inserted edge loop will be offset a distance relative to the length of the edge that is being split. Default:true Flags from nodes

Derived from mel command maya.cmds.polySelectEditCtx

Example:

import pymel.core as pm

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

# Create a new poly select and edit context, then switch to it
pm.polySelectEditCtx('polySelectEditCtx1')
pm.setToolTo('polySelectEditCtx1')