cMuscleWeightDefault
 
 
 

Description: Sets initial/default weights for the selected Muscle deformed objects for the provided weight type and options provided. This is also used to fix invalid Sticky bindings.

Flags:

Short Flag Long Flag Argument Description
-ang -angle float For Direction mode, sets the angle range for a point to be considered weighted. Default is 45.0.
-byc -bycurve   For single weight types, this means use curvature method.
-byd -bydirection   For single weight types, this means use direction/angle method.
-crv -curve float For Curve mode, specifies the curvature needed. 1.0=more curved. 0.0=flat.
-def -default   Specify this flag to set default weights.
-dir -direction float float float For Direction mode, this sets the direction to try to match. Default is 0,-1,0.
-fa -falloff float Falloff distance to use for weighting sliding and direction style weights.
-fix -fixsticky   If this flag is provided, Muscle re-binds sticky muscle-points that need it. This fixes errors that occur when the showWarnings option on the deformer is on. When setting default sticky weights, this occurs automatically.
-n -normalize boolean Will normalize the weights when loading. Usually you want this on for sticky.
-pr -prune int Prunes weights to provided number of decimal points. Default is 0 which means do not prune.
-rev -reverse   Reverses the effect of single weight by Curvature mode so weights are higher when flatter instead of curved.
-sm -smooth Int How many iterations to smooth weights. Usual values are between 0 and 20.
-sys -system string The Muscle deformer to affect.
-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.

Examples:

cMuscleWeightDefault -sys cMuscleSystem1 -default -wt "sticky" -normalize true -smooth 3; // Set default sticky weights 
cMuscleWeightDefault -sys cMuscleSystem1 -default -wt "sliding" -smooth 2 -falloff 50.0 ; // Set default sliding weights 
cMuscleWeightDefault -sys cMuscleSystem1 -default -wt "direction" -smooth 0 ;
// Set default direction weights 
cMuscleWeightDefault -sys cMuscleSystem1 -default -wt "jiggle" -bydirection -direction 0.0 -1.0 0.0 -angle 45.0 ; // Set default jiggle weights based on points that have normals // facing straight down within a 45 degree threshold. 
cMuscleWeightDefault -sys cMuscleSystem1 -fixsticky ; // Automatically rebind sticky any muscle-points that need it