Using the Limit Controller
 
 
 
  1. Open TreasureChest.max from the \tutorials\controllers directory.
  2. Select the Top object.

  3. Click Select And Rotate and rotate the object about its X axis. Note how there's no limit to the object’s rotation range—it can rotate to any extent in either direction.
  4. Click Undo to restore the Top object to its original orientation.

    In the following steps you will apply the Limit controller to restrict the Top’s range of motion to within 0 and –110 degrees.

  5. With the Top object still selected, right-click to display the quad menu and choose Curve Editor.

  6. Expand the hierarchy and highlight the X Rotation track.

  7. Right-click again and from the quad menu choose Assign Controller.

  8. From the Assign Float Controller dialog, choose Float Limit and click OK.

    This opens the Float Limit Controller dialog.

  9. Set the Upper Limit value to 0.0 and Lower Limit to –110.0.

  10. Close the dialog.
  11. Close Curve Editor.
  12. Again rotate the Top object about its X axis.

    Now, it cannot rotate beyond the specified limits.

Summary

In this tutorial, you learned how to use the Limit Controller to limit the range of another controller. In this case, you limited the rotation controller assigned to the lid of the treasure chest.