9

Scripts 819
To tur n y our own humanoid figur e into a constra ined
rag doll:
1.
Create your figure using the naming
conventions described in How It Works (page
2–820).
2. Run the script as described above.
The script searches the scene for geometry that
follows the naming conventions and adds your
figure to the Humanoids list.
3. Ensure your figure is highlighted in the list and
then click Constrain Humanoid.
Inter f ace
Create H u m anoid rollout
Name R oot—This text bo x stores the root name for
the objects to b e created. For example, the Name
Root "RagDoll" generates objects w ith names such
as RagD oll Pelv is and RagDoll R UpperArm.
Height—Theheightofhumanoidtobecreated.
Vertebra—Thenumberofvertebratobecreated
in the character’s spine.
Add Ha nds—When on, reactor creates boxes for
the character’s hands.
Add Feet—When on, reactor creates boxes for t he
character’s feet.
Link Parts—When on, reactor links the crea ted
partsasa3dsMaxhierarchy.
Cr e a te H u m ano id—Click to create the humanoid
objects and add them to the scene.
Constrain Humanoid rollout
Humanoids—Displays a list of potential humanoids
found in the current scene that could be used for
creating rag dolls. In generating t his list only t he
root node is examined so it is, in effect, a list of
valid root nodes in the scene. If the rest of the
hierarchy does not exist for a given root, when
you use the root to create a rag doll the software
outputs errors to the MAXScript listener.
Vertebra—The maximum number of Rag Doll
constraints that the script creates for the character’s
spine. If this value exceeds the number of valid
vertebrae in the selected humanoid, the script
wont create the excess constrain ts.