Let us suppose two objects are part of some motion transfer method (toothed,
belt, chain etc.) with an assigned gear ratio. Script dg_reduc.ms
makes it possible to automatically change the value of the rotation of
the sub object dependent on the value of the rotation of main object.
Let us look at how the script works, based on the example scene reducer.max,
which animates the wheels of a gear drive.
In order to add animation for the gear:
- For the Master Object select Larger Gear;
- For the Slave Object select Smaller Gear;
- Set a gear ratio 2:3;
- Set correction 9° (after creation, gear was turned to 9° around
the Z axis);
- Press the APPLY button;
- View the obtained animation.
The parameter reverse controls the direction of rotation of the sub object
(in the case of a belt drive, flag must be included).
The name of the object selected as Master Object, must not contain spaces.
It is possible to create multiple gearing. For example, if in the scene contains three gears, then the script must be used twice. The middle wheel must be assigned as the Slave Object for the first time, and for the second time - as Master Object. In this case it is only necessary to animate the first wheel, the remaining wheels will revolve automatically.
I express appreciation to RacerMan,
who proposed the idea of this script.