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 This flag is deprecated. Use splitType/stp instead. This flag is deprecated. Use splitType/stp instead. adjustEdgeFlow / aef float The weight value of the edge vertices to be positioned. Default:1.0f autoComplete / ac bool If true then use auto completion on selections deleteEdge / de bool When true, the end edges are deleted so the end triangles are converted to quads. divisions / div int Number of divisions. Default:2 endVertexOffset / evo float Weight value controlling the offset of the end vertex of the edgeloop. exists / ex bool Returns true or false depending upon whether the specified object exists. Other flags are ignored. fixQuads / fq bool 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 First of three possible icons representing the tool associated with the context. image2 / i2 unicode Second of three possible icons representing the tool associated with the context. image3 / i3 unicode Third of three possible icons representing the tool associated with the context. insertWithEdgeFlow / ief bool True to enable edge flow. Otherwise, the edge flow is disabled. Default:false mode / m int which mode to work on. Available modes are 1-loop and 2-ring smoothingAngle / sma float Angle below which new edges will be smoothed Default:kPi splitType / stp int Format: 0 - Absolute, 1 - Relative, 2 - Multi Default:TdnpolySplitRing::Relative startVertexOffset / svo float 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 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')