Description: Sets or gets Muscle deformer weights.
Short Flag | Long Flag | Argument | Description |
---|---|---|---|
-l | -lock | boolean | Enable or disable Lock/Hold weights on a muscle or direction node. |
-mus | -muscle | string | cMuscleObject or cMuscleDirection node for the muscle, bone or direction you are getting or setting weights for. |
-mi | -mindex | int | The direct index 0...n of the muscle, bone or direction. Either this or -muscle must be provided for setting/getting weights. |
-n | -normalize | boolean | Will normalize the weights for the point, but keeps the value you are setting as is. Defaults to on if not specified. |
-pi | -pindex | int | The direct point index of the weight to set. Either this or an obj.component must be provided. |
-sys | -system | string | The Muscle deformer weights are being set for. |
-v | -value | float | Value of weight set, or marks as a get. |
-wt | -weight | string | What type of weight to alter, must be a string of one of the following:"sticky", “stickyb”, “stickyc”, "sliding", "direction",” smartregiona”, “smartregionb”, “smartbulk”, “smartbulkangular”, “smartbulkwiden”, “smartslide”, “smartslideangular”, “smartsmooth”, “smartwrinkle”, “smartflatten”, “smartvolumize”, “force”, “jiggle”, “cycle”, “rest”, “relax”, “wrinkle”, “smooth”, “smoothcompress”, “smoothexpand”, “selfcollision”, “selfrigidity”, “selfVolumize”.If left blank, sticky is assumed. |
cMuscleWeight -system cMuscleSystemNode -muscle cMuscleNode -v 0.0 -wt "sticky" -normalize true mySkin.vtx[12] ; // Set Sticky Weight to 0 with normalization on
cMuscleWeight -system cMuscleSystemNode -muscle cMuscleNode -v 0.0 -wt "sliding" mySkin.vtx[12] ; // Set Sliding Weight to 0
cMuscleWeight -system cMuscleSystemNode -muscle cMuscleNode -v 0.0 -wt "direction" mySkin.vtx[12] ; // Set Direction Weight to 0
cMuscleWeight -system cMuscleSystemNode -v 0.0 -wt "relax" mySkin.vtx[12] ; // Set Relax Weight to 0
cMuscleWeight -system cMuscleSystemNode -v 0.0 -wt "smooth" mySkin.vtx[12] ; // Set Smooth Weight to 0
cMuscleWeight -system cMuscleSystemNode -muscle cMuscleNode -wt "sticky" -q -v mySkin.vtx[12] ; // QUERY Sticky Weight
cMuscleWeight -system cMuscleSystemNode -muscle cMuscleNode -wt "sliding" -q -v mySkin.vtx[12] ; // QUERY Sliding Weight
cMuscleWeight -system cMuscleSystemNode -muscle cMuscleNode -wt "direction" -q -v mySkin.vtx[12] ; // QUERY Direction Weight
cMuscleWeight -system cMuscleSystemNode -wt "relax" -q -v mySkin.vtx[12] ; // QUERY Relax Weight
cMuscleWeight -system cMuscleSystemNode -mi 0 -pi 12 -wt "sticky" -q -v ; // QUERY Sticky Weight of 0th muscle on the 12th point
cMuscleWeight -system cMuscleSystemNode -mi 0 -lock true ; // Set Sticky Lock Weights on 0th muscle to on
cMuscleWeight -system cMuscleSystemNode -mi 0 -wt "sliding" -lock true ; // Set Sliding Lock Weights on 0th muscle to on
cMuscleWeight -system cMuscleSystemNode -mi 0 -wt "direction" -lock true ; // Set Direction Lock Weights on 0th direction node to on
cMuscleWeight -system cMuscleSystemNode -mi 0 -q -lock ; // QUERY Sticky Lock Weights on 0th muscle