Keep up-to-date with Free tutorials!!


Sign up to our twice-monthly newsletter today for the latest tutorials, interviews and product information.

Sign me up to receive third-party emails from 3dtotal's partners, too!

- Latest news
- Exclusive Shop Offers
- Preview early content
- Plus much more


Not Ready to take that step? OK, Why not just Subscribe to the RSS Feed

submit tutorial
First ... 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9
Modeling, Scripting and Animating Gears

| Your Rating:
rating star fullrating star fullrating star fullrating star fullrating star full
(46 Votes)
| Comments 3
Date Added: 7th May 2013
Software used:

This can be summarized as a ratio: cog10/cog30=0.33 (10/30=0.33). The MELScript to rotate gear05 by 1/3 the rotation value of gear04, in the opposite direction is:


So here's the MELScript so far:


Finally, the difficult part - gear05 lifting the door.

gear05 contains a single cog30. For each degree cog30 rotates, the door will translate in the Y axis. If we calculate the circumference of cog30 and divide by 360°, we'll know how much to translate the door in the Y axis.

Here's a quick breakdown of this process (Fig.35):

1. Rotating cog30 360° will translate door the same distance as the circumference of cog30.
2. Therefore, we can assume that by rotating cog30 1°, door will translate circumference/360.

The circumference of a circle is calculated as: 2? * radius

Where ? (Pi) = 3.14159, the circumference of cog30 is:

= 2? * radius
= (2*3.14159)*15
= 94.248

Therefore, rotating gear05 by 1° will translate door:

= 94.248/360°
= 0.2618

Rotating gear05 by 90° will translate door:


Fig. 35

The MELScript to translateY door, based on the rotation of gear05 is (Fig.36):


So, the completed MELScript is:


Creating an Expression

Now that we've written the MELScript, the next step is to use it to create an expression.

Fig. 36

Open the Expression Editor (Window > Animation Editors > Expression Editor)(Fig.37).

Enter the name "gearRotation" into the Expression Name field.

Fig. 37

< previous page continued on next page >

First... 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9
Related Tutorials

Car Modeling Using Nurbs Part 2

by Julian Sarmiento
published on 2010-12-30

Keywords: car, modeling, nurbs,

rating star fullrating star fullrating star fullrating star fullrating star none (5)
Comments 1 Views 70393

Modeling the Human Figure

by Peter Ratner
published on 2007-02-06

Keywords: modeling, human, woman, character, body,

rating star fullrating star fullrating star fullrating star fullrating star half (40)
Comments 2 Views 346206


by Kristian Foshaug
published on 2009-12-09

Keywords: asteroids, modeling, max,

rating star fullrating star fullrating star fullrating star fullrating star none (1)
Comments 0 Views 14613

Mesh Extract - Video Tutorials

by Pixologic
published on 2009-08-18

Keywords: mesh, extract, modeling, zbrush,

rating star nonerating star nonerating star nonerating star nonerating star none (0)
Comments 0 Views 8552
Readers Comments (Newest on Top)
Riccardo on Tue, 02 July 2013 6:11pm
Thank you very much! Great tutorial!
SirFunk on Wed, 26 June 2013 11:15pm
Awesome, thank you man :)
Kumar Jeetu on Tue, 07 May 2013 10:58am
nice tutorial
Add Your Comment..