Go to: Synopsis. Return value. Related.
Flags. Python
examples.
polyMirrorFace([caching=boolean], [constructionHistory=boolean],
[direction=int], [mergeMode=int], [mergeThreshold=linear], [name=string], [nodeState=int], [pivot=[linear, linear, linear]], [pivotX=linear], [pivotY=linear], [pivotZ=linear], [worldSpace=boolean])
Note: Strings representing object names and
arguments must be separated by commas. This is not depicted in the
synopsis.
polyMirrorFace is undoable, queryable, and editable.
Mirror all the faces of the selected object.
In query mode, return type is based on queried flag.
polyAppend, polyAppendVertex, polyBevel, polyChipOff, polyCreateFacet, polyExtrudeEdge, polySmooth, polySplit, polySplitVertex, polySubdivideEdge, polySubdivideFacet, polyTriangulate
caching, constructionHistory, direction, mergeMode, mergeThreshold, name, nodeState,
pivot, pivotX,
pivotY, pivotZ,
worldSpace
Long name (short name) |
Argument types |
Properties |
worldSpace(ws) |
boolean |
   |
|
This flag specifies which reference to use. If "on" : all
geometrical values are taken in world reference. If "off" : all
geometrical values are taken in object reference.
C: Default is off.
Q: When queried, this flag returns an int. |
|
pivot(p) |
[linear, linear, linear] |
 |
|
This flag specifies the pivot for the mirror.
C: Default is computed using the bounding box of the object |
|
pivotX(px) |
linear |
 |
|
This flag specifies the X pivot for the mirror.
C: Default is computed using the bounding box of the object |
|
pivotY(py) |
linear |
 |
|
This flag specifies the Y pivot for the mirror.
C: Default is computed using the bounding box of the object |
|
pivotZ(pz) |
linear |
 |
|
This flag specifies the Z pivot for the mirror.
C: Default is computed using the bounding box of the object |
|
direction(d) |
int |
 |
|
This flag specifies the mirror direction.
C: Default is 0 |
|
mergeMode(mm) |
int |
 |
|
This flag specifies the behaviour of the mirror with respect to
the border edges. Valid values are 0-5, corresponding to +X, -X,
+Y, -Y, +Z, -Z direction respectively.
If the mode is 0, the border edges will not be merged (co-incident
vertices will be present).
If the mode is 1, the border vertices/edges will be merged
If the mode is 2, the border edges will be extruded and
connected.
C: Default is 0 |
|
mergeThreshold(mt) |
linear |
 |
|
This flag specifies the tolerance value for merging
borders.
C: Default is 0.1 |
|
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
# Mirror about +X direction by merging the border vertices
cmds.polyCube( name='poly1' )
cmds.delete( 'poly1.f[4]' )
cmds.polyMirrorFace( 'poly1', direction=0, mergeMode=1 )
# Mirror about +Y direction by connecting the border edges
# in world reference, by explicitly specifying a pivot point (0, 2, 0)
cmds.polyCube( name='poly2' )
cmds.delete( 'poly2.f[4]' )
cmds.rotate( 0, 0, 45, 'poly2', r=True, os=True )
cmds.polyMirrorFace( 'poly2', direction=2, p=(0, 2, 0), mergeMode=2, worldSpace=1 )