Magic Lantern Forum

Developing Magic Lantern => Scripting Corner => Topic started by: garry23 on July 15, 2016, 07:29:17 PM

Title: Point to Point focus stacking
Post by: garry23 on July 15, 2016, 07:29:17 PM
If anyone is interested here is an experimental add on to my auto focus and exposure script.

This version (V4) adds in a FP to FP focus bracketing.

All you need to do is select FP2FP in the script's menu, then go to LV (without running the script), focus on the nearest or furthest point and (on a 5D3) press RATE (change this in the code for any key you wish), then go to the other focus extreme and press RATE again. Return to the script and run it.

The script handles all the focus logic, ie if one image is enough, the FP will be positioned accordingly, so the near and far DoFs are 'symmetric' either side of the FPs you selected. If more than one focus bracket is required the script will take these.

Try playing around with the ML CoC values, ie the defaults are the bare minimum, eg 29 micron on a FF. For more exacting standards try, say, 18. Also play around with the aperture. As the script allows you to ensure your subject is tack sharp and your backgrounds 'blurred', no matter what the subject size is: as you are focus stacking.

As I say, it's experimental but I would value feedback in helping me develop it further.

Cheers

Garry

Script is here https://gist.github.com/pigeonhill/e008f051681885bc6ff84de637cb1d8e (https://gist.github.com/pigeonhill/e008f051681885bc6ff84de637cb1d8e)
Title: Re: Point to Point focus stacking
Post by: garry23 on July 16, 2016, 09:37:37 AM
The latest version allows exposure bracketing during FP2FP focus stacking.

I've also tidied up the workflow.

In the focus bracketing menu you will now find a SET-AB option. Select this and run the script. Then in LV focus go to one of the focus points you wish to stack between and press RATE (on my 5D3 this is the button I use, change this in the script to what you wish), then focus on the other extreme (you can do this in any order, ie AB or BA) and press RATE. Return to the script's menu and select FP2FP, select other options, eg bookends or exposure brackets, and run the script again.

Here is the script if you are interested: https://gist.github.com/pigeonhill/e008f051681885bc6ff84de637cb1d8e/revisions (https://gist.github.com/pigeonhill/e008f051681885bc6ff84de637cb1d8e/revisions)

As usual: it works for me and on my 5D3.