From the course: Rigging Mechanical Objects in Maya

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Using expressions to drive gears

Using expressions to drive gears - Maya Tutorial

From the course: Rigging Mechanical Objects in Maya

Start my 1-month free trial

Using expressions to drive gears

- We now have our crankshaft and our first gear turning. So let's go ahead and translate that motion through the other gears. So the first one is this smaller gear here, and this is called Gear_16, and again that's because it has 16 teeth. So we're going to be driving, 32 teeth is going to be driving 16. Well that makes it pretty easy, it's going to be a 2:1 ratio. And typically what you do is you divide the driving gear by the driven gear. So 32 divided by 16 is going to be two. So this is going to work at twice the rate of the driving gear. So we can set this is up using what's called an Expression. Now before I do that, I'm actually going to go into my Outliner and create a group for this. I'm gong to select Gear_16 and I'm just gong to group it to itself. I can do Edit, Group, or Ctrl+G. Then I'm going to name that, let's just call that Gear_16GRP. Now, when you group something the pivot comes in at the origin, so we still want to do Modify, Center Pivot, so that we have that…

Contents