Magic Lantern Forum

Developing Magic Lantern => Scripting Corner => Scripting API suggestions => Topic started by: garry23 on October 03, 2019, 10:57:12 AM

Title: Advanced Bracketing enhancement
Post by: garry23 on October 03, 2019, 10:57:12 AM
@a1ex

If you do have a few minutes I would welcome your insight.

I continue to seek a way to pause a script and fully wait for the advanced bracketing (AB) to finish.

I trigger the AB via a shoot() call, and wish to pause the script at this point until the AB has finished, and at that time continue doing other script 'stuff', including more shooting calls.

I've tried using sleep() within a repeat loop, ie tracking card_count, but this seems to stop the AB. Alsso this would fail if you were using AB in auto mode, ie not knowing how many brackets to take.

Do you have any pointers?

If not, would there be a chance to implement a scheme that allows the AB to be called and for the script to wait?

Cheers

Garry
Title: Re: Advanced Bracketing enhancement
Post by: garry23 on October 03, 2019, 05:25:15 PM
OK, worked out a scripted 'solution' for when you know the number of brackets that the Advanced Bracketing is going to take.

Have implemented this approach in my Hand Held Bracketing Script: https://gist.github.com/pigeonhill/96ac84ea5f1435b056120b4d03884425

Approach is simply to 'keep watching' to see if the expected card count has been reached.