pymel.core.context.polyMergeEdgeCtx¶
- polyMergeEdgeCtx(*args, **kwargs)¶
Create a new context to merge edges on polygonal objects In query mode, return type is based on queried flag.
Flags:
Long Name / Short Name Argument Types Properties activeNodes / anq bool Return the active nodes in the tool caching / cch bool constructionHistory / ch bool exists / ex bool Returns true or false depending upon whether the specified object exists. Other flags are ignored. firstEdge / fe int frozen / fzn bool 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. immediate / im bool Acts on the object not the tool defaults mergeMode / mm int The merge mode. (at first edge : 0, in between : 1, at last edge : 2) Default is in between. mergeTexture / mt bool name / n unicode If this is a tool command, name the tool appropriately. nodeState / nds int previous / pv bool Reset to previously stored values reset / rs bool Reset to default values secondEdge / se int toolNode / tnq bool Return the node used for tool defaults Flag can have multiple arguments, passed either as a tuple or a list. Derived from mel command maya.cmds.polyMergeEdgeCtx
Example:
import pymel.core as pm # Create a poly plane pm.polyPlane(w=10, h=10, sx=10, sy=10, n='pPlane1') # Create a new poly merge edge context, set to use first selected edge as the new edge, then switch to it pm.polyMergeEdgeCtx('polyMergeEdgeCtx1', mm=0) pm.setToolTo('polyMergeEdgeCtx1')