Value > MAXWrapper > Node > Helper > RagdollHelper |
This object represents the MassFX Skeleton Helper. It is used to introduce characters as Kinematic Skeleton objects that can affect but cannot be affected by physical simulations.
Available in 3ds Max 2012 and higher.
The Kinematic Skeleton helper cannot be constructed directly by MAXScript. It can be constructed using the nvpx Core Interface as follows:
Get/set the associated bones as an array of nodes.
Get/set the bone group IDs as an array of integers.
Get/set the type of physical mesh to create around the bones when regenerating the skeleton.
The skeleton can size the capsule or convex hull physical mesh (see preceding) for a bone to fit around either the skinned mesh or the bones themselves.
0 - Skinned Mesh - This option finds the vertices in the associated skin mesh that have a weighting above the specified Weight threshold (see following) and fits the capsule or convex hull around them. This option is unavailable if you created your skeleton from a rig that has no associated skin mesh. When available, this option is the default.
1 - Bones - The option fits the physical mesh around the shape of the bone. This option is typically useful only when a character mesh is not available.
Get/set the amount to inflate the convex hull or capsule beyond the cloud of vertices or bone. Can be negative if you want to contract the physical mesh to be within the skinned mesh.
Get/set the Weight treshold used when finding associated vertices in the skinned mesh. A lower value will include more vertices per bone, reusing some vertices for multiple overlapping bones
Not exposed to the UI. Not used.
Saves the Ragdoll to a MassFX Skeleton .RAG file.
Loads a Ragdoll definition from the supplied MassFX Skeleton .RAG file.
Adds the supplied Bone node to the Bones and Groups list.
Removes the specified Bone node.
Groups the bones specified by the by-reference array argument. Equivalent to the "Group" button in the UI.
Regenerates the Skeleton. If the argument is true, it will be reset.
A number of helpful Ragdoll-related MAXScript Functions are defined in the file ..\stdplugs\stdscripts\(MassFX)\px_ragdoll.ms