ScriptSpot

Forum topic · Scripts Wanted

Basic Gear Driver Wanted - Planetary Reduction Gearbox

By t100martin · 2009-02-11

Description

I'm quite experienced with modelling in 3DS Max, but a newcomwer to Maxscript.
I've built a 3 stage planetary reduction gearbox and have succeeded in animating the top set, but I have no flexibility in controlling the speed of the gearbox.
What I want is a means of setting (and changing) the input speed of the top sun gear and have the the whole gear train follow suit.
The math of the gear ratios is no problem, the scripting is my weak point.
I'm working with 3D Max 7.

Attachments
Comments (1)

Hani Tiby · 2009-02-18

Martin, I've failed using a script controller for this issue, I'm still trying to understand rotations in Maxscript.
But it's working with expression controller, I've used the gears radius to get the rotation rate. then multiplied the main gear rotation by this rate.
Here is the expression body:
- MGrot*(MGR/MyR)
all the above variables are scalars
MGrot -- assigned to Main gear rotation controller (X or Y or Z)
MGR -- assigned to Main gear radius
MyR -- assigned to self radius

I hope this would help.