Go to: Synopsis. Return value. Related. Flags. Python examples.

Synopsis

subdMirror( [string] , [caching=boolean], [constructionHistory=boolean], [name=string], [nodeState=int], [object=boolean], [xMirror=boolean], [yMirror=boolean], [zMirror=boolean])

Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.

subdMirror is undoable, queryable, and editable.

This command takes a subdivision surface, passed as the argument, and produces a subdivision surface that is a mirror. Returns the name of the subdivision surface created and optionally the DG node that does the mirroring.

Return value

string[]The subdivision surface and optionally the dependency node name

In query mode, return type is based on queried flag.

Related

changeSubdivComponentDisplayLevel, changeSubdivRegion, createSubdivRegion, nurbsToSubdiv, polyToSubdiv, querySubdiv, refineSubdivSelectionList, subdToBlind, subdToPoly, subdiv, subdivCrease, subdivDisplaySmoothness

Flags

caching, constructionHistory, name, nodeState, object, xMirror, yMirror, zMirror
Long name (short name) Argument types Properties
xMirror(xm) boolean createqueryedit
Mirror the vertices in X
Default: false
yMirror(ym) boolean createqueryedit
Mirror the vertices in Y
Default: false
zMirror(zm) boolean createqueryedit
Mirror the vertices in Z
Default: false
Advanced flags
caching(cch) boolean createqueryedit
Modifies the node caching mode. See the node documentation for more information.
Note: For advanced users only.
nodeState(nds) int createqueryedit
Modifies the node state. See the node documentation for more information.
Note: For advanced users only.
Common flags
name(n) string create
Name the resulting object
constructionHistory(ch) boolean create
Turn the construction history on or off (where applicable)
object(o) boolean create
Create the result, or just the dep. node (where applicable)

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.

Python examples

import maya.cmds as cmds

# To create a new subd surface mirrored in the X direction.
cmds.subdMirror( 'subdivShape1', xMirror=True )