Go to: Synopsis. Return value. Related.
Flags. Python
examples.
polyMergeFacet([caching=boolean], [constructionHistory=boolean],
[firstFacet=int], [mergeMode=int], [name=string], [nodeState=int], [secondFacet=int])
Note: Strings representing object names and
arguments must be separated by commas. This is not depicted in the
synopsis.
polyMergeFacet is undoable, queryable, and editable.
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.
In query mode, return type is based on queried flag.
polyCloseBorder, polyCollapseEdge, polyCollapseFacet, polyDelEdge, polyDelFacet, polyDelVertex, polyMergeEdge, polyMergeVertex, polyQuad, polyReduce, polySewEdge
caching, constructionHistory, firstFacet, mergeMode, name,
nodeState, secondFacet
Long name (short name) |
Argument types |
Properties |
mergeMode(mm) |
int |
   |
|
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). |
|
firstFacet(ff) |
int |
   |
|
The number of the first (outer) face to merge. |
|
secondFacet(sf) |
int |
   |
|
The number of the second (hole) face to merge. |
|
Common flags |
name(n) |
string |
 |
|
Give a name to the resulting node. |
|
constructionHistory(ch) |
boolean |
  |
|
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. |
|
caching(cch) |
boolean |
  |
|
Toggle caching for all attributes so that no recomputation is
needed |
|
nodeState(nds) |
int |
   |
|
Defines how to evaluate the node.
- 0: Normal
- 1: PassThrough
- 2: Blocking
- 3: Internally disabled. Will return to Normal state when
enabled
- 4: Internally disabled. Will return to PassThrough state when
enabled
- 5: Internally disabled. Will return to Blocking state when
enabled
|
|
Flag can appear in Create mode of
command |
Flag can appear in Edit mode of command |
Flag can appear in Query mode of command |
Flag can have multiple arguments, passed
either as a tuple or a list. |
import maya.cmds as cmds
cmds.polyPlane( n='plg', h=10, w=10, sx=5, sy=5 )
cmds.polyChipOff( 'plg.f[16]', 'plg.f[18]', 'plg.f[7]', dup=1, ltz=1, ls=(.5, .5, .5) )
# First
cmds.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
cmds.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
cmds.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