Muscle
double Muscle (object bone, object connection, double tension, double contraction )
Return Value: 1.0 for success, 0.0 for failure
Arguments:
bone | bone item to convert to a muscle |
connection | item to connect the end of the muscle to |
tension | not currently implemented, use 1.0 |
contraction | not currently implemented, use 1.0 |
This function turns a bone into a muscle. You can now create muscles through the interface, see Interface->Setup Tab->Items Tab->Bone for more information on muscles. If you need to alter the scaling of the muscle then you must use this function instead of the interface method as this allows you to control the order of evaluation. Any expressions that must alter the scale of the muscle (e.g. locking the xscale to 1.0) must come after this function
Example:
Muscle_Definition_Bicep
|_ Muscle( Bicep_Muscle, Bicep_Tendon, 1,
1)
Constrain_Xscale_Bicep
|_ 1.0
|_ Bicep_Muscle:xscale
In the example above we turn Bicep_Muscle into a muscle, then in the next expression we set it's xscale to 1.0, overriding the xscale value that the Muscle( ) function assigned to it.
Converted from CHM to HTML with chm2web Pro 2.82 (unicode) |