9
Scripts 817
Performance menu
Fixed Step (60,50,40,30 fps)—Choosing one of these
options changes the frequency of the simulation to
the given value; a frequency of 30 fps yields a ti me
step of 1/30 (0.0666) second, 50 fps means a time
step of 1/50 (0.02) second, etc.
Substeps (1-100 substeps)—Choosing of these
optionssetsthenumberofsubstepstakeninevery
simulation step.
Mouse menu
This menu is available only when using the Havok
1engine.
Pick at C.O.M.—During the preview, you can pick
and drag objects (see To interact with objects in the
Preview Window : (page 2–815).Aspringisthe
attached b etween the mouse cursor in the screen
and the object. When this option is on, the spring
is attached to the center of mass of the object.
Otherwise the spring is attached to the point on
the object where you first right-clicked.
Mouse Help—This option shows some help
regarding the use of the mouse to control the
camera and mouse picking.
MAX
Update MAX —Takes t he p o sit i on and rot at ion o f
the o bjects in the s imulation a nd uses them to
update the objects in 3ds Max.
Use MA X par ameter s—Resets the substeps and time
step (FPS) va lues to the values set in the reactor
utility’s Preview and Animation (page 2–806)
rollout.
Display rollo ut
The Display rollout of the reactor utility lets you
configure various display options for the Preview
Window, including cameras and lighting. For
more information, see Display Rollout (page
2–812).
Scripts
This s ection deals with some us eful scripts that you
can use to speed up your creation of reactor scenes.
If you are interested in creating your own scripts,
see the MAXScript Reference, available from the
3ds Max Help menu.
Setup S cr ipts
These scripts allow you to quickly set up
constraints and collections. They are run
automat ically when you follow the specified
procedures.
Constraint Creation
This applies to all the reactor constrain t (page
2–724) types, except the Point-to-path constraint
(page 2–762).
To creat e a constra in t and attach obje cts in a si ngle
step:
This method works with two or more objects only;
it doesn’t work with a single-body constraint setup
such as Spring with a child only.
1. Create the object(s) to constrain, and then
ensure they are both selected.
If you select more than two objects, reactor will
create constraints between them. If you lin k
the objects together hierarchically in 3ds Max
before creating the constraints, reactor will
create constraints between link parents and
children. Otherwise, reactor will examine the
scene and try to choose appropriate pairs of
objects.
2. Create the constraint(s) by using the reactor
toolbar, menu or quad menu. T he constraint
automatically appears in the viewport, and
as you will see in the constraint’s Properties
rollout, your objects are now attached to the
constraint.