How to rig geneva gear?

Does anybody know how to rig this?


The animation is here:

Probably be best to use an Action constraint.

First animate the green cog so it does a 360*.
For the red cog, animate one step based on the green cog rotation, green 360*, red 60*.
Then add an action constraint to the red cog with the action, and map it to the green cog rotation.

Or you could animate both, so the red cog does a 360*, then add an action constraint to both, but map them to a different object transformation.

Thank you for your reply dirty-stick. Action constraint did it.

But there is only one thing – the rotation of geneva gear is not linear so using only action constraint is not precise. To correct it I made a small workaround with empty and shapekey driven by this empty …check the blend file. Ok, it is still not 100% precise, but it works for me.

Attachments

Geneva gear.blend (906 KB)

Heres a modified version.
http://www.pasteall.org/blend/32306

Move the GenevaDeform empty in the x+ direction to animate both cogs.

Very very good dirty-stick. Much cleaner and more precise solution as working around with shapekeys. From your blend file I have learned how the action constraint work, really helpful, thank you.