copySkinWeights is undoable, queryable, and editable.
Command to copy or mirror the skinCluster weights accross one of
the three major axes. The command can be used to mirror weights
either from one surface to another or within the same surface.
In query mode, return type is based on queried flag.
Long name (short name) |
Argument types |
Properties |
-sourceSkin(-ss) |
string |
![create create](../gfx/create.gif) ![query query](../gfx/query.gif) ![edit edit](../gfx/edit.gif) |
|
Specify the source skin shape |
|
-destinationSkin(-ds) |
string |
![create create](../gfx/create.gif) ![query query](../gfx/query.gif) ![edit edit](../gfx/edit.gif) |
|
Specify the destination skin shape |
|
-normalize(-nr) |
|
![create create](../gfx/create.gif) ![query query](../gfx/query.gif) ![edit edit](../gfx/edit.gif) |
|
Normalize the skin weights. |
|
-noMirror(-nm) |
|
![create create](../gfx/create.gif) ![query query](../gfx/query.gif) ![edit edit](../gfx/edit.gif) |
|
When the no mirror flag is used, the weights are copied instead
of mirrored. |
|
-mirrorInverse(-mi) |
|
![create create](../gfx/create.gif) ![query query](../gfx/query.gif) ![edit edit](../gfx/edit.gif) |
|
Values are mirrored from the positive side to the negative. If
this flag is used then the direction is inverted. |
|
-smooth(-sm) |
|
![create create](../gfx/create.gif) ![query query](../gfx/query.gif) ![edit edit](../gfx/edit.gif) |
|
When the smooth flag is used, the weights are smoothly
interpolated between the closest vertices, instead of assigned from
the single closest. |
|
-mirrorMode(-mm) |
string |
![create create](../gfx/create.gif) ![query query](../gfx/query.gif) ![edit edit](../gfx/edit.gif) |
|
The mirrorMode flag defines the plane of mirroring (XY, YZ, or
XZ) when the mirror flag is used. The default plane is XY. |
|
-surfaceAssociation(-sa) |
string |
![create create](../gfx/create.gif) ![query query](../gfx/query.gif) ![edit edit](../gfx/edit.gif) |
|
The surfaceAssociation flag controls how the weights are
transferred between the surfaces: "closestPoint", "rayCast", or
"closestComponent". The default is closestComponent. |
|
-influenceAssociation(-ia) |
string |
![create create](../gfx/create.gif) ![query query](../gfx/query.gif) ![edit edit](../gfx/edit.gif) ![multiuse multiuse](../gfx/multiuse.gif) |
|
The influenceAssociation flag controls how the influences on
the source and target skins are matched up. The flag can be
included multiple times to specify multiple association schemes
that will be invoked one after the other until all influences have
been matched up. Supported values are "closestJoint",
"closestBone", "label", "name", "oneToOne". The default is
closestJoint. |
|
-sampleSpace(-spa) |
uint |
![create create](../gfx/create.gif) ![query query](../gfx/query.gif) ![edit edit](../gfx/edit.gif) |
|
Selects which space the attribute transfer is performed in. 0
is world space, 1 is model space. The default is world space. |
|
-uvSpace(-uv) |
string string |
![create create](../gfx/create.gif) ![query query](../gfx/query.gif) ![edit edit](../gfx/edit.gif) |
|
The uvSpace flag indicates that the weight transfer should
occur in UV space, based on the source and destination UV sets
specified. |
|
-noBlendWeight(-nbw) |
|
![create create](../gfx/create.gif) ![query query](../gfx/query.gif) ![edit edit](../gfx/edit.gif) |
|
When the no blend flag is used, the blend weights on the skin
cluster will not be copied across to the destination. |
|