Description: Calculates Sticky-Bind information for NURBS muscles to Muscle deformers.
Short Flag | Long Flag | Argument | Description |
---|---|---|---|
-c | -cbind | Calculate center and overall distance for default sticky binding based on distance from the given muscle. Returns 4 values, the first three are the X, Y, Z values of the center, the fourth is the default distance. | |
-d | -dist | float | Maximum distance from center of muscle to affected points for binding. |
-sys | -system | string | The Muscle deformer node to sticky bind to. |
-mus | -muscle | string | Muscle (cMuscleObject) node you are going to bind. Must already be connected to the system node. |
-mi | -mindex | int | The direct index 0...n of the muscle. Either this or -muscle must be provided for binding. |
cMuscleBindSticky -system cMuscleSystemNode -muscle cMuscleObjectNode ; // Perform sticky bind on given muscle to system node.
cMuscleBindSticky -system cMuscleSystemNode -mindex 0 ; // Perform sticky bind on first muscle to system node.
cMuscleBindSticky -system cMuscleSystemNode -mindex 0 -d 2.5 ; // Perform sticky bind on first muscle to system node, but only to points within 2.5 units from the center of the muscle.
float $result[4] = `cMuscleBindSticky -cbind -muscle cMuscleObjectNode` ; // Calculate best distance and center for sticky distance binding.