Magic Lantern Forum

Developing Magic Lantern => Scripting Corner => Scripting API suggestions => Topic started by: garry23 on May 28, 2017, 10:32:50 PM

Title: Detect shutter action in Lua
Post by: garry23 on May 28, 2017, 10:32:50 PM
@dmilligan

I'm a little stuck as I need to detect when an image has been taken, so I can record some variables for later use.

Can you suggest the best way in Lua to detect an image has been taken. I can't see how to do it with event or property.

Or maybe you can't do it, i.e. a feature yet to be realized.

Cheers

Garry
Title: Re: Detect shutter action in Lua
Post by: a1ex on May 28, 2017, 10:42:19 PM
An image triggered from Lua or taken by the user?

I have the first case implemented locally (with an API test that looks whether the CR2 or JPG was saved). Second case is available in ML core, just has to be exposed to Lua somehow.
Title: Re: Detect shutter action in Lua
Post by: garry23 on May 28, 2017, 11:03:21 PM
A canon shutter action.