cMuscleWeightSave
 
 
 

Description: Loads or saves Muscle deformer weights to an external file.

Flags:

Short Flag Long Flag Argument Description
-a -axis int The mirror axis when loading by point position. You can use this to mirror the points in conjunction with Search and Replace. -1 means no mirror. 0=X-axis, 1=Y-axis, 2=Z-axis.
-act -action string Either "save" or "load" or "infs". Default is "load".
-f -file string Specify file to use.
-m -mode string Mode for loading points. Either "pointorder" or "pointposition". Default is "pointorder".
-n -normalize boolean Normalizes 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.
-rep -replace string String for Replace in each influence name.
-spc -space string When loading by point position, space to use for points. Either "world" or "object". Default is "world".
-src -search string String for search in each influence name.
-sys -system string Muscle deformer.
-tol -tolerance float When loading by point position, points must be within this distance squared to be loaded. Default is -1 which means ignore. Any value 0 or higher is used as a tolerance match.
-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:

cMuscleWeightSave -sys cMuscleSystem1 -wt "sticky" -f "c:/temp/foo.txt" -action "save" ; // Save sticky weight, with no pruning 
cMuscleWeightSave -sys cMuscleSystem1 -wt "sticky" -normalize true -f "c:/temp/foo.txt" -action "load" ; // Load sticky weights and normalize them on load 
cMuscleWeightSave -sys cMuscleSystem1 -wt "jiggle" -prune 3 -f "c:/temp/foo.txt" -action "load" ; // Load jiggle weights and prune to 3 decimal places 
cMuscleWeightSave -f "c:/temp/foo.txt" -search "Lf" -replace "Rt" -action "infs" ; // Return the list of bones/muscles that were used in this file // taking into account any search and replace