pymel.core.modeling.polyMergeEdge

polyMergeEdge(*args, **kwargs)

Sews two border edges together.The new edge is located either on the first, last, or between both selected edges, depending on the mode. Both edges must belong to the same object, and orientations must match (i.e. normals on corresponding faces must point in the same direction).Edge flags are mandatory.

Flags:
Long name (short name) Argument Types Properties
caching (cch) bool ../../../_images/create.gif ../../../_images/edit.gif
 
Toggle caching for all attributes so that no recomputation is needed
constructionHistory (ch) bool ../../../_images/create.gif ../../../_images/query.gif
 

Turn the construction history on or off (where applicable). If construction history is on then the corresponding node will be inserted into the history chain for the mesh. If construction history is off then the operation will be performed directly on the object.Note:If the object already has construction history then this flag is ignored and the node will always be inserted into the history chain.

firstEdge (fe) int ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
The number of the first edge to merge.
mergeMode (mm) int ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
This flag specifies how to merge, merge mode : at first edge : 0, in between : 1, at last edge : 2.C: Default is in between.
mergeTexture (mt) bool  
   
name (n) unicode ../../../_images/create.gif
 
Give a name to the resulting node.
nodeState (nds) int ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 

Defines how to evaluate the node. 0: Normal1: PassThrough2: Blocking3: Internally disabled. Will return to Normal state when enabled4: Internally disabled. Will return to PassThrough state when enabled5: Internally disabled. Will return to Blocking state when enabledFlag can appear in Create mode of commandFlag can have multiple arguments, passed either as a tuple or a list.

secondEdge (se) int ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
The number of the second edge to merge.Common flags

Derived from mel command maya.cmds.polyMergeEdge

Example:

import pymel.core as pm

import maya.cmds as cmds

pm.polyPlane( sx=3, sy=3, n='plg1' )
pm.move( -2, 0, 0, 'plg1' )
pm.delete( 'plg1.f[3:5]' )
pm.polyPlane( sx=3, sy=3, n='plg2' )
pm.delete( 'plg2.f[3:5]' )
pm.polyPlane( sx=3, sy=3, n='plg3' )
pm.move( 2, 0, 0, 'plg3' )
pm.delete( 'plg3.f[3:5]' )

# First
pm.polyMergeEdge( 'plg1', mm=0, fe=8, se=12 )

# Between
pm.polyMergeEdge( 'plg2', mm=1, fe=8, se=12 )

# Last
pm.polyMergeEdge( 'plg3', mm=2, fe=8, se=12 )

Previous topic

pymel.core.modeling.polyMapSewMove

Next topic

pymel.core.modeling.polyMergeFacet

Core

Core Modules

Other Modules

This Page