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
|
|
|
Specify the source skin shape
|
|
-destinationSkin(-ds)
|
string
|
|
|
Specify the destination skin shape
|
|
-normalize(-nr)
|
|
|
|
Normalize the skin weights.
|
|
-noMirror(-nm)
|
|
|
|
When the no mirror flag is used, the weights are copied instead of mirrored.
|
|
-mirrorInverse(-mi)
|
|
|
|
Values are mirrored from the positive side to the negative. If this flag is used then the direction is inverted.
|
|
-smooth(-sm)
|
|
|
|
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
|
|
|
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
|
|
|
The surfaceAssociation flag controls how the weights are transferred between the
surfaces: "closestPoint", "rayCast", or "closestComponent". The default is closestComponent.
|
|
-influenceAssociation(-ia)
|
string
|
|
|
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
|
|
|
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
|
|
|
The uvSpace flag indicates that the weight transfer should occur in UV space, based on the
source and destination UV sets specified.
|
|
-noBlendWeight(-nbw)
|
|
|
|
When the no blend flag is used, the blend weights on the skin cluster will not be copied across to
the destination.
|
|