Go to: Return value. Related commands. Flags. Examples.

Synopsis

cpSetSolverAttr [flags]

This command is used to provide values to the cloth solver node. This command can only be used when the solver is computing the cloth mesh. During playback, or whenever the solver is using a cache to obtain information for the current framem, the values supplied to cpSetSolverAttr will not be used.

Return value

Varies, depending on values requested.

Related commands

cpGetSolverAttr

Flags

attribute, help, index, solverOnly

Long name (short name)[argument types]Properties
-help (-h) create
Prints a quick help message, including a list of all attributes for the -a/attribute flag.
-attribute (-a) stringquery
Specfies which attribute to set
-solverOnly (-so) query
Update only the solver internals, not the cache or output meshes. This should be used during subframe callbacks.
-index (-idx) query
Specfies the which control point is being set. Each control point must be set individually.

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 CV, with idx 5, to position (2.3, 4.0, 7.5).
 cpSetSolverAttr -attribute p -idx 5 2.3 4.0 7.5;

 // Set CV, with idx 2, to velociry (5.2, -2.0, 6.3).
 cpSetSolverAttr -a velocity -index 2 5.2 -2.0 6.3;