Magic Lantern Forum

Developing Magic Lantern => Scripting Corner => Scripting API suggestions => Topic started by: garry23 on April 12, 2017, 02:25:05 PM

Title: Extension requests to the Lua API
Post by: garry23 on April 12, 2017, 02:25:05 PM
I'm not sure if this is the right/best location for this post, but I'm sure it will get repositioned if required :-)

The purpose is to allow ML users the chance to flag (to the developers) potential Lua API extensions, eg accessing ML data, as accessing core Canon 'stuff', eg exposure etc, is well handled at the moment.

To kick things off, I would like to propose the following, to 'open up' the ML Spotmeter:

1. Get [read] the current ML spotmeter position in LV space, eg:
get_spotmeter.pos_x
get_spotmeter.pos_y

2. Get [read] the current ML spotmeter value (as set in the ML menu), eg:
get_spotmeter.val

3. If possible (I accept this may not be possible, eg linked to canon focus point) enable the following Put [write] capability for the spotmeter, ie move the spotmeter location, eg:
put_spotmeter.pos_x
put_spotmeter.pos_y

I hope others add to the above, as Lua has more things to offer.

Cheers

Garry