Go to:
Return value. Related commands. Flags. Examples.
Synopsis
percent [flags] <weighted node name> [objects]
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.
Return value
none
-v/value double
(C, Q) 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.
-dp/dropoffPosition double double double
(C) Specifies the point around which to dropoff the percent value.
-dax/dropoffAxis double double double
(C) Specifies the axis along which to dropoff the percent value,
starting from the dropoffPosition.
-dc/dropoffCurve string
(C) Specifies the curve around which to dropoff the percent value.
-dds/dropoffDistance double
(C) Specifies the dropoff distance from the point, plane or curve
that was specified using the -dp -dax or -dc flags.
-dt/dropoffType [ linear | sine | exponential | linearSquared | none ]
(C) Specifies the type of dropoff. Used in conjunction with
the -dp, -dax or -dc flags. Default is linear.
-ap/addPercent
(C) Add the percent value specified with the -v flag to the existing percent values
-mp/multiplyPercent
(C) Multiply the percent value specified with the -v flag with existing percent values
Related commands
cluster, lattice, sculpt, deformer, flexor, wire, wrinkleFlags
after, before, deformerTool, exclusive, frontOfChain, geometry, ignoreSelected, name, prune, remove, split
Long name (short name) | [argument types] | Properties |
---|
-name
(-n)
| string | |
|
Used to specify the name of the node being created
|
|
-geometry
(-g)
| string |   |
|
The specified object will be added to the list of
objects being deformed by this deformer object, unless
the -rm flag is also specified. When queried, this flag
returns string string string ...
|
|
-remove
(-rm)
|
|  |
|
Specifies that objects listed after the -g flag should
be removed from this deformer.
|
|
-before
(-bf)
|
|  |
|
If the default behavior for insertion/appending into/onto
the existing chain is not what you want then you can use
this flag to force the command to stick the deformer
node before the selected node in the chain even if
a new geometry shape has to be created in order to do so
|
|
-after
(-af)
|
|  |
|
If the default behavior for insertion/appending into/onto
the existing chain is not what you want then you can use
this flag to force the command to stick the deformer
node after the selected node in the chain even if
a new geometry shape has to be created in order to do so
|
|
-split
(-sp)
|
|  |
|
Branches off a new chain in the dependency graph instead
of inserting/appending the deformer into/onto an
existing chain.
|
|
-frontOfChain
(-foc)
|
|  |
|
This command is used to specify that the new deformer
node should be placed ahead (upstream) of existing deformer
and skin nodes in the shape's history (but not ahead of
existing tweak nodes). The input to the
deformer will be the upstream shape rather than the visible
downstream shape, so the behavior of this flag is the most
intuitive if the downstream deformers are in their reset
(hasNoEffect) position when the new deformer is added.
|
|
-ignoreSelected
(-is)
|
|  |
|
Tells the command to not deform objects on the
current selection list
|
|
-deformerTool
(-dt)
|
|  |
|
Returns the name of the deformer tool objects (if any)
as string string ...
|
|
-prune
(-pr)
|
|  |
|
Removes any points not being deformed by the deformer in
its current configuration from the deformer set.
|
|
-exclusive
(-ex)
|
|   |
|
Puts the deformation set in a deform partition.
|
|
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
|
Examples
// 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;