2009

Table Of Contents
Ball.scaleY = time + 1;
3 Change the expression to this:
Ball.scaleY = time/5 + 1;
By dividing time by 5, youll make the Y scaling increase one-fifth as fast
as with the previous version of the expression.
Note that you can use the keyboard commands Ctrl-c (Windows and
Linux) or Control-c (Mac OS X), Ctrl-x or Control-x, and Ctrl-v or
Control-v to copy, cut, and paste text in the Expression Editor and
elsewhere in Maya.
4 Click Edit to update the modified expression.
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:
Using expressions to control multiple attributes | 571