pymel.core.animation.copyDeformerWeights

copyDeformerWeights(*args, **kwargs)

Command to copy or mirror the deformer 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.

Flags:
  • destinationDeformer : dd (unicode) [create,query,edit]

    Specify the deformer used by the destination shape

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

    Specify the destination deformed shape

  • 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.

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

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

  • 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.

  • sourceDeformer : sd (unicode) [create,query,edit]

    Specify the deformer whose weights should be mirrored. When queried, returns the deformers used by the source shapes.

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

    Specify the source deformed 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. Flag can have multiple arguments, passed either as a tuple or a list.

Derived from mel command maya.cmds.copyDeformerWeights

Previous topic

pymel.core.animation.connectJoint

Next topic

pymel.core.animation.copyFlexor

Core

Core Modules

Other Modules

This Page