pymel.core.modeling.polyMergeFacet

polyMergeFacet(*args, **kwargs)

The second face becomes a hole in the first face.The new holed face is located either on the first, last, or between both selected faces, depending on the mode. Both faces must belong to the same object.Facet 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.

firstFacet (ff) int ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
The number of the first (outer) face to merge.
mergeMode (mm) int ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 

This flag specifies how faces are merged: 0: moves second face to first one 1: moves both faces to average 2: moves first face to second one 3, 4, 5: same as above, except faces are projected but not centred 6: Nothing moves.C: Default is None (6).

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.

secondFacet (sf) int ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
The number of the second (hole) face to merge.Common flags

Derived from mel command maya.cmds.polyMergeFacet

Example:

import pymel.core as pm

pm.polyPlane( n='plg', h=10, w=10, sx=5, sy=5 )
pm.polyChipOff( 'plg.f[16]', 'plg.f[18]', 'plg.f[7]', dup=1, ltz=1, ls=(.5, .5, .5) )

# First
pm.polyMergeFacet( 'plg', mm=0, ff=16, sf=26 )
# A new face with face #16 as an outer loop and face #26 as a hole
# is replacing faces #16 and #26, and is located on face #16

# Between
pm.polyMergeFacet( 'plg', mm=1, ff=7, sf=25 )
# A new face with face #7 as an outer loop and face #25 as a hole
# is replacing faces #7 and #25, and is located in between.

# Last
pm.polyMergeFacet( 'plg', mm=2, ff=18, sf=25 )
# A new face with face #18 as an outer loop and face #25 as a hole
# is replacing faces #18 and #25, and is located on face #25

Previous topic

pymel.core.modeling.polyMergeEdge

Next topic

pymel.core.modeling.polyMergeUV

Core

Core Modules

Other Modules

This Page