pymel.core.animation.copySkinWeights

copySkinWeights(*args, **kwargs)

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.

Flags:
  • destinationSkin : ds (unicode) [create,query,edit]

    Specify the destination skin shape

  • influenceAssociation : ia (unicode) [create,query,edit]

    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.

  • mirrorInverse : mi (bool) [create,query,edit]

    Values are mirrored from the positive side to the negative. If this flag is used then the direction is inverted.

  • mirrorMode : mm (unicode) [create,query,edit]

    The mirrorMode flag defines the plane of mirroring (XY, YZ, or XZ) when the mirror flag is used. The default plane is XY.

  • noBlendWeight : nbw (bool) [create,query,edit]

    When the no blend flag is used, the blend weights on the skin cluster will not be copied across to the destination. Flag can have multiple arguments, passed either as a tuple or a list.

  • noMirror : nm (bool) [create,query,edit]

    When the no mirror flag is used, the weights are copied instead of mirrored.

  • normalize : nr (bool) [create,query,edit]

    Normalize the skin weights.

  • sampleSpace : spa (int) [create,query,edit]

    Selects which space the attribute transfer is performed in. 0 is world space, 1 is model space. The default is world space.

  • smooth : sm (bool) [create,query,edit]

    When the smooth flag is used, the weights are smoothly interpolated between the closest vertices, instead of assigned from the single closest.

  • sourceSkin : ss (unicode) [create,query,edit]

    Specify the source skin shape

  • surfaceAssociation : sa (unicode) [create,query,edit]

    The surfaceAssociation flag controls how the weights are transferred between the surfaces: closestPoint, rayCast, or closestComponent. The default is closestComponent.

  • uvSpace : uv (unicode, unicode) [create,query,edit]

    The uvSpace flag indicates that the weight transfer should occur in UV space, based on the source and destination UV sets specified.

Derived from mel command maya.cmds.copySkinWeights

Previous topic

pymel.core.animation.copyKey

Next topic

pymel.core.animation.currentTime

Core

Core Modules

Other Modules

This Page