Maya tutorials:animation of two gears


4 methods of how to transmit rotation around Z axis to rotation around X axis.



maya tutorial animation gear
hagA rotates on Z axis, hagB will rotate on X axis.

For hagA, the keyframe has already been set.



Method 1
maya tutorial animation gear
Duplicate hagA, name it hagB.
Rotate hagB on Z axis (reverse to hagA) with keyframes.
Make a group, rotate the group 90 degrees on Y axis.



Method 2
maya tutorial animation gear
Duplicate hagA, name it hagB, rotate 90 degrees on Y axis.
Modify > Freeze Transformation , then rotates are 0,0,0.

maya tutorial animation gear
Open the Connection Editor
Window > General Editors > Connection Editor

Select hagA (at Work Space or Outliner), click Reload Left
Select hagB, click Reload Right
Select RotateZ of hagA, select RotateX of hagB.
(You should pay attention to the button from > to.)

Then hagB will rotate, but same rotation direction to hagA.
Rotate hagB 180 degrees on Y axis.



Method 3
maya tutorial animation gear
Duplicate hagA, name it hagB, rotate 90 degrees on Y axis.
Modify > Freeze Transformation , then rotates are 0,0,0.

Open the Set Driven Key window
Animate > Set Driven Key > Set

Select hagA(at Work Space or Outliner), click Load Driver , and select rotateZ.
Select hagB, click Load Driven , and select rotateX.

Select hagA, enter -360 to ratate Z (at the Channel Box).
Select hagB, enter 360 to ratate X (at the Channel Box).
Click Key

Select hagA, enter 0 to ratate Z.
Select hagB, enter 0 to ratate X.
Click Key (in the Set Driven Key Window)

Select hagA, enter 360 to ratate Z.
Select hagB, enter -360 to ratate X.
Click Key

Then hagB will rotate.



Method 4
maya tutorial animation gear
Duplicate hagA, name it hagB, rotate 90 degrees on Y axis.
Modify > Freeze Transformation , then rotates are 0,0,0.

Open the Expression Editor
Window > Animation Editors > Expression Editor

Write
hagB.rx = hagA.rz * -1;
at Expression window, click Create

maya tutorial animation gear
If you want to edit Expression, click Edit
(rx will expand to rotateX)


hagB.rotateX = hagA.rotateZ * 0.75;

You can change rotation speed as above.


Japanese article
Maya tutorials:animation of two gears


Copyright (C) 2009 by maya blog:3D CG labo, All Rights Reserved.

Links

[privacy policy]
We use third-party advertising companies to serve ads when you visit our Web site. These companies may use information (not including your name, address email address or telephone number) about your visits to this and other Web sites in order to provide advertisements about goods and services of interest to you. If you would like more information about this practice and to know your choices about not having this information used by these companies, click here.
QLOOKアクセス解析
search this site