Maya: Some Expressions


Wheels on a car:  apply to the wheel rotate in z channel
rz =  car.tx /   (2*3.1416)  *  1   *   360
wheel  car            pi        wheel size     1 rotation



Windshield wipers:  apply to the wiper rotate in x channel
rx =   (sin  (.9  *  time) *  45) +   10
wiper         sine  speed   time   degree  offset for position



Volumetric squashing for a ball: pg 26 Learning Maya
apply to the ball scale in x channel  sx = 1/sy
apply to the ball scale in x channel  sz = 1/sy



Start an Expression at a Certain Frame:
if (frame > 50)
      tx = 0;
else tx = 50;

If the value frame is greater than 50 translate x will = 0, otherwise translate x = 50.



Start and stop an Expression at a Certain Frame:
if (frame < 50)
      tx = 0;
else if ((frame >= 50) && (frame <= 100))
      tx = 50;
else if (frame > 100)
      tx = 2;



Imbedded Sin Waves for a Random Effect
ty = sin (sin (.5 * time) * time);



Use noise for a random effect
ty = noise(time);
Maya Some Expressions