Current development version to be found on git hub here:
v2 - 2011 05 08
Now uses a club-tooth escapement rather than a ratchet-wheel Graham.
Backwards compatible with existing clock scripts.
v3 - 2011 05 13
Modified to make use of the new library feature for adding holes to the drum. Backwards compatible with existing clock scripts.
Summary of changes to the code:
v4 - 2011 05 18
Modified to support the ratcheting drum designed by rustedrobot.
There are things that get re-used by various clocks and test jigs, but don't really merit inclusion in the library itself. I got a little tired of managing multiple clock scripts, and having to make sure the latest improvements made it into the various configurations.
So, all this common logic, for placing the gears, making them mesh and rotate, or laying them out to print, etc... that's all now contained in this clock builder script which calls MCAD for the gears and my clockwork library for the clockwork.
It, in turn is called by short scripts that contain only the parameter values for a particular clock, and any clock-specific code you might care to add (like a frame design, since I haven't come up with a good generic one yet).
Which means that if you want to play with clock configurations with as little as two or as many as nine wheels, with all, any or none of them bearing hands and/or concentric shafts, curled up as loose or as tight as you want, all you need to do is create a copy of a clock-script, and modify parameters to your heart's content. The core code and parameters are unchanged.
You will need a copy of MCAD/involute_gears, of my clockwork library, this clock builder script, and at least one clock script (e.g. the ones listed here as derivatives).
Open the clock script and hit F5 to compile. Save it under a different name, change the parameters (remove a gear, add a gear, add a hand, change the folding angle of the gear train, etc...) and hit F5 again to recompile.
The first clock script I will upload to Thingiverse will be the current version of the test jig, which incorporates rustedrobot's latest feedback from his experiments with the previous version.