Create a new context to merge facets on polygonal objects In query mode, return type is based on queried flag.
| Long name (short name) | Argument Types | Properties | |
|---|---|---|---|
| activeNodes (anq) | bool |
|
|
|
|||
| caching (cch) | bool | ||
| constructionHistory (ch) | bool | ||
| exists (ex) | bool |
|
|
|
|||
| firstFacet (ff) | int | ||
| image1 (i1) | unicode |
|
|
| image2 (i2) | unicode |
|
|
| image3 (i3) | unicode |
|
|
|
|||
| immediate (im) | bool |
|
|
|
|||
| mergeMode (mm) | int |
|
|
The merge mode. (at first facet : 0, in between : 1, at last facet : 2)Default is in between.Flag can appear in Create mode of commandFlag can have multiple arguments, passed either as a tuple or a list. |
|||
| name (n) | unicode |
|
|
|
|||
| nodeState (nds) | int | ||
| previous (pv) | bool |
|
|
|
|||
| reset (rs) | bool |
|
|
|
|||
| secondFacet (sf) | int | ||
| toolNode (tnq) | bool |
|
|
|
|||
Derived from mel command maya.cmds.polyMergeFacetCtx
Example:
import pymel.core as pm
import maya.cmds as cmds
# Create a poly plane
pm.polyPlane(w=10, h=10, sx=10, sy=10, n='pPlane1')
# Create a new poly merge facet context, set the merge mode to merging the second face to the first face, then switch to it
pm.polyMergeFacetCtx('polyMergeFacetCtx1', mm=0)
pm.setToolTo('polyMergeFacetCtx1')