pymel.core.animation.percent

percent(*args, **kwargs)

This command sets percent values on members of a weighted node such as a cluster or a jointCluster. With no flags specified the command sets the percent value for selected components of the specified node to the specified percent value. A dropoff from the specified percent value to 0 can be specifed from a point, plane or curve using a dropoff distance around that shape. The percent value can also be added or multiplied with existing percent values of the node components. In query mode, return type is based on queried flag.

Flags:
  • addPercent : ap (bool) [create]

    Add the percent value specified with the -v flag to the existing percent values

  • dropoffAxis : dax (float, float, float) [create]

    Specifies the axis along which to dropoff the percent value, starting from the dropoffPosition.

  • dropoffCurve : dc (unicode) [create]

    Specifies the curve around which to dropoff the percent value.

  • dropoffDistance : dds (float) [create]

    Specifies the dropoff distance from the point, plane or curve that was specified using the -dp -dax or -dc flags.

  • dropoffPosition : dp (float, float, float) [create]

    Specifies the point around which to dropoff the percent value.

  • dropoffType : dt (unicode) [create]

    Specifies the type of dropoff. Used in conjunction with the -dp, -dax or -dc flags. Default is linear. Valid values are: linear, sine, exponential, linearSquared, none.

  • multiplyPercent : mp (bool) [create]

    Multiply the percent value specified with the -v flag with existing percent values Flag can have multiple arguments, passed either as a tuple or a list.

  • value : v (float) [create,query]

    The percent value to be applied. The default is 1. In query mode, returns an array of doubles corresponding to the weights of the selected object components.

Derived from mel command maya.cmds.percent

Previous topic

pymel.core.animation.pathAnimation

Next topic

pymel.core.animation.play

Core

Core Modules

Other Modules

This Page