Go to: Synopsis. Return value. Related.
Flags. MEL
examples.
percent [-addPercent] [-dropoffAxis linear linear linear]
[-dropoffCurve string]
[-dropoffDistance linear]
[-dropoffPosition linear
linear linear] [-dropoffType
string] [-multiplyPercent] [-value float] node [objects]
percent is undoable, queryable, and NOT editable.
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.
None
In query mode, return type is based on queried flag.
cluster, deformer, flexor,
lattice, sculpt, wire, wrinkle
addPercent, dropoffAxis, dropoffCurve, dropoffDistance, dropoffPosition, dropoffType, multiplyPercent, value
Long name (short name) |
Argument types |
Properties |
-value(-v) |
float |
![create create](../gfx/create.gif) ![query query](../gfx/query.gif) |
|
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. |
|
-dropoffPosition(-dp) |
linear linear linear |
![create create](../gfx/create.gif) |
|
Specifies the point around which to dropoff the percent
value. |
|
-dropoffAxis(-dax) |
linear linear linear |
![create create](../gfx/create.gif) |
|
Specifies the axis along which to dropoff the percent value,
starting from the dropoffPosition. |
|
-dropoffCurve(-dc) |
string |
![create create](../gfx/create.gif) |
|
Specifies the curve around which to dropoff the percent
value. |
|
-dropoffDistance(-dds) |
linear |
![create create](../gfx/create.gif) |
|
Specifies the dropoff distance from the point, plane or curve
that was specified using the -dp -dax or -dc flags. |
|
-dropoffType(-dt) |
string |
![create create](../gfx/create.gif) |
|
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. |
|
-addPercent(-ap) |
|
![create create](../gfx/create.gif) |
|
Add the percent value specified with the -v flag to the
existing percent values |
|
-multiplyPercent(-mp) |
|
![create create](../gfx/create.gif) |
|
Multiply the percent value specified with the -v flag with
existing percent values |
|
Flag can appear in Create mode of
command |
Flag can appear in Edit mode of command |
Flag can appear in Query mode of command |
Flag can be used more than once in a
command. |
// set percents on the selected items to 0.6
//
percent -v 0.6 cluster1;
// set percents on the selected items dropping off along the
// z-axis starting at the origin. Dropoff distance is 5, and
// the initial value is 1. Dropoff type is linear.
//
percent -dp 0 0 0 -dax 0 0 1 -dt linear -dds 5 -v 1 cluster1;
// set percents on the selected items dropping off along
// curve1. Dropoff distance is 5, and
// the initial value is 0.3.
//
percent -dc curve2 -dds 3 -v 0.3 cluster2;
// add 0.1 to the percents of the selected items
//
percent -v 0.1 -ap cluster1;