2010

Table Of Contents
Clicking the Edit button does the same action as clicking the Create
button. The Create button exists only for new expressions. The Edit button
replaces the Create button when you display an existing expression.
5 Play the animation to see the results of the new expression.
The sphere scales at a slower rate than before.
6 Stop the animation and go to the start time.
7 At this point and in subsequent steps, save the scene if you think youll
want to examine it at a later date.
Using expressions to control multiple attributes
You can change the expression to control two or more attributes of Ball as in
this example:
Ball.scaleX = time/2 +1;
Ball.scaleY = time/3 +1;
Ball.scaleZ = time/5 +1;
Maya scales the Ball at different rates for the X, Y, and Z dimensions.
Linking multiple attributes on the same object
You can change the expression to link the value of one attribute to another
as in this example:
Ball.scaleX = time + 1;
Ball.scaleY = Ball.scaleX;
Ball.scaleZ = Ball.scaleX;
The second statement sets Ball.scaleY to the value of Ball.scaleX. Because
youve set Ball.scaleX to the value of time + 1, Ball.scaleY also has the value
of time + 1. Youre linking one attributes value to another. The third statement
also sets Ball.scaleZ to the value of the attribute Ball.scaleX.
The advantage of this expression is that if you assign a different value to
Ball.scaleX in the first statement, the second and third statements automatically
receive the new value.
Using expressions to control multiple attributes | 631