I promised to post the code I wrote to do focus stacking. Here it is, in the form of a patch to pyptp.

The code is lightly tested on my Canon EOS 7D.

It's necessary to change the shutter release button so that a half-press does not autofocus. (this is somewhere in the C.Fn. menus) If your camera doesn't have this custom function, I don't think this code will work for you.

Manually focus the lens at the far end of the range, set lens to autofocus, plug in the usb cable, and run the program. You may have to fiddle with the "--stepsize=" argument in order to get an appropriate amount of movement between each shot and of course "--count=" to capture enough frames to cover your subject. For a list of other other options, run 'python stack.py --help'.

Files currently attached to this page:

pyptp-canon-stacker.patch17.0kB