|
The Script Controller is an animation controller that evaluates a math formula and return its result to the track. For instance, you can create a formula that will make the Bend value half of the Twist Value. The Script Controller has more flexibility and is easier to use than Expression Controllers. There are two ways to assign a Script Controller. First one is through Track View or Motion Panel. The second one is through MAXScript.
If you change a script controller, the changes will not be shown in the screen, until the current time has changed. To view the changes on screen, advance one frame, and return back one frame. This way you will view the changes. Specify a 30º Twist and notice the Bend being modified. Now create an animation with Twist ranging from 0 to 180º. Another example of Script Controller is to assign it to a Optimize Modifier and adjust the optimizer according to the distance between the object and the camera.
Now you will see it working. Increase the number of Height Segments of the cylinder and add a Noise Modifier prior to the Optimize. Animate the object from scene 0 to 100, moving it closer to the camera in frame 0 and about 600 units far, in frame 100. Play the animation and observe the object's optimization. If you prefer, you can download the optimize_script.max file, which already contains all these changes. Alexander Esppeschit Bicalho © 1999 |