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 you’ve set Ball.scaleX to the value of time + 1, Ball.scaleY also has the value of time + 1. You’re linking one attribute’s 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.