Reaction Controllers

The Reaction controller is a procedural controller that lets a parameter react to changes in any other parameter in 3ds Max. Typically, you perform most of the setup involving Reaction controllers with the Reaction Manager dialog. You use the dialog to define a driver—an object that controls other objects—and, for each driver, any number of driven objects, which the driver controls. Alternatively, you can assign a Reaction controller directly to a driven object using Track View or the Motion panel (as you would any other controller), and then use Reaction Manager to specify its driver and other parameters.

Reaction controllers come in five different types: Position Reaction, Rotation Reaction, Point3 Reaction, Scale Reaction, and Float Reaction. You can assign a Reaction controller to any animatable track in the scene. Reaction is not based on time, but rather on other variables in your scene such as position or rotation.

For example, you can use a Reaction controller to turn on a light as an object nears a given point. Muscles can bulge as an arm bone rotates. A ball can squash automatically as its Z position nears the ground plane. Feet can rotate as their heels are lifted from the floor.

A particle system can be triggered by any given event. Morph target percentages can be controlled by events.

Procedures

Example: To make the position of a sphere react to the position of a box:

    This procedure shows an alternate way to use a Reaction controller. The recommended workflow is to do most of the setup in the Reaction Manager dialog: See Example: To use the Reaction Manager dialog.

    Note: Objects don't need to be animated to use Reaction controllers. This procedure starts with animation to make the reaction easier to see.
  1. On the left side of the Top viewport, create a box about 30 units on a side.
  2. Animate the box from position (–100,0,0) at frame 0 to position (100,0,0) frame 100.
  3. In the Front viewport, create a sphere slightly above the box. Position the sphere at (–100,0,50).
  4. Go to the Motion panel, and on the Assign Controller rollout, click the Position track to highlight it.
  5. On the Assign Controller rollout, click (Assign Controller).
  6. On the Assign Position Controller dialog, click Position Reaction to highlight it, and then click OK.

    This opens the Reaction Manager dialog. The Reactions list shows that the sphere's position is assigned as a driven object, and a driver entry exists but no motion is assigned to it. A Reaction controller uses a driver object's motion to control any number of driven objects.

  7. Right-click the “Unassigned” entry at the top of the Reactions list. From the menu, choose Replace Driver.

    This places you in a Pick mode where you can choose a motion track from any object in the scene to act as driver.

  8. In any viewport, click the box (Box001).

    A pop-up menu opens.

  9. From the pop-up menu, choose Transform Position X Position.

    The “Unassigned” text is replaced by a driver track labeled “Box001 / X Position”.

    Also, a new state, State001, appears in the States list, below the Reactions list.

    This is an example of the basis of the control mechanism used by the Reaction controller: For each driver/driven object combination, you can specify any number of states defined by values for the driver and driven tracks. The first state, created automatically when you added the driver, specifies that when the box is at –100 on the X axis, the sphere should be at (–100,0,50). In this case, you're controlling three parameters (the sphere position on all three axes) with one (the box position on the X axis). More typically you'd use one-to-one driver/driven-parameter ratios.

    Note: Reaction Manager also defines a state automatically when you assign a new driven object to a driver.

    Next you'll create a second state that tells the sphere how to move on multiple axes as the box moves on one.

  10. Drag the time slider to frame 50.

    The box moves to the midpoint of its animated trajectory. The sphere remains where it is.

  11. On the Reaction Manager dialog, click (Create State).

    This creates a new state (State002) using the current positions of the box and sphere.

  12. Try moving the sphere in the Front viewport.

    You can't move the sphere because it's under the full control of its driver, the box. Similarly, you can't change its position using the Coordinate Display fields on the status bar. However, you can change the sphere's position using the Reaction Manager's editing tools.

  13. On the Reaction Manager dialog, click the Sphere001 / Position entry under State002 to highlight it, if necessary, and then click the Edit Mode button.
  14. Position the sphere at (0,0,100).

    The position updates in the Sphere001 / Position line under State002. Also, the Reaction Manager graph shows the change in values of the driven object's(sphere) X and Z position values as the driver box's X position changes. On the graph, as in Track View, red=X, green=Y, and blue=Z.

  15. Click the Edit Mode button again to turn it off, and then scrub the time slider.

    As the box moves between frames 0 and 50, the sphere rises to the position specified in the second state.

    For the third and final state, you'll have the driven object move in a different direction over the second half of the driver object's motion.

  16. Go to frame 100, and then create a new state.
  17. In the States list, click the new state or its driven track to highlight it.
  18. Turn on Edit Mode. Position the sphere at (0,–100,100), and then turn off Edit Mode.
  19. Scrub the time slider between frames 0 and 100.

    Over the first 50 frames, the sphere moves between the first two states, and over the second half of the animation, the sphere moves between the second and third states.

    To conclude the procedure, you'll demonstrate that the sphere is responding only to the box's X position, regardless of animation.

  20. Go to frame 0. Select the box, and then press and hold the Alt key and right-click the box.

    This opens the Animation quad menu.

  21. From the Set (lower-right) quadrant, choose Delete Selected Animation.

    This command deletes all animation keys for the current selection.

  22. Now move the box in all three dimensions.

    Any change in the Y or Z position has no effect on the sphere. However, moving the box between –100 and 100 on the X axis, no matter what the Y or Z position, results in changing the sphere's position as specified in the Reaction controller.

    This procedure gives you a hint of the Reaction controller's power. You can find another procedure showing additional aspects of the Reaction Manager in: Example: To use the Reaction Manager dialog.

Interface

After assigning a Reaction controller, right-click the track and then choose Properties, or choose Animation Reaction Manager, to open the Reaction Manager dialog.