Go to: Synopsis. Flags. Return value. Related. Python examples.
polyMergeFacet([constructionHistory=boolean], [firstFacet=int], [mergeMode=int], [name=string], [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.
constructionHistory, firstFacet, mergeMode, name, secondFacet
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.
|
string The node name.
polyCloseBorder, polyCollapseEdge, polyCollapseFacet, polyDelEdge, polyDelFacet, polyDelVertex, polyMergeEdge, polyMergeVertex, polyQuad, polyReduce, polySewEdge
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) )
#<i>first</i>
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 & #26 and is located on face #16
#<i>between</i>
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 & #25 and is located in between.
#<i>last</i>
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 & #25 and is located on face #25