Page 911 - Kitab3DsMax
P. 911

Animating with the
                                     Expression Controller
                                     and Wiring Parameters                                                   CHAPTER







                                          xpressions are looks that you make in the mirror when you’re trying to
                                          wake up, but in Max they are a series of equations that define how an   IN THIS CHAPTER
                                     Eobject acts. Max expressions can be as simple as adding two numbers
                                     together or as complex as several lines of MAXScript. But expressions enable you   Using the Numerical
                                     to create customized animated reactions.                         Expression Evaluator
                                     Although Max expressions can be used with any Max spinner, they are mainly   Understanding the Expression
                                     used within MAXScript scripts or in the Expression controller. The Expression   controller interface
                                     controller is a specialized controller that lets you control the object’s behavior   Learning about operators,
                                     using scripted expressions.
                                                                                                      variables, and functions
                                     This chapter then looks at a unique way to drive animations based on object
                                     parameters. Parameters of one object can be wired to parameters of another   Wiring parameters with
                                     object so that when one parameter changes, the wired parameter changes with it.   manipulator helpers
                                     For example, you can wire the On/Off parameter of a light to the movement of a   Collecting parameters
                                     switch. All parameters that can be animated can be wired.
                                                                                                    Creating custom parameters
                                     As long as you are working with parameters, Max includes several helpful tools
                                     for viewing and working with the available parameters including the Parameter
                                     Collector. If the Parameter Collector doesn’t gather the exact parameters that you
                                     need, you can create your own custom parameters also.


                                     Working with Expressions in Spinners

                                     Although much of this chapter focuses on using the Expression controller, the
                                     Expression Controller Interface isn’t the only place where you can play with
                                     expressions. Expressions can also be entered into spinner controls using the
                                     Numerical Expression Evaluator, shown in Figure 35.1. This simple dialog box is
                                     accessed by selecting a spinner and pressing Ctrl+N.

                                     Cross-Ref
                                     Another place that commonly uses expressions is the Parameter Wiring dialog
                                     box, which is covered later in this chapter. n

                                                                                863
   906   907   908   909   910   911   912   913   914   915   916