Magic Lantern Forum

Developing Magic Lantern => Scripting Corner => Scripting Q&A => Topic started by: Jzpwood on May 01, 2020, 10:08:47 PM

Title: Reading DoF or AF-On key? 5D III
Post by: Jzpwood on May 01, 2020, 10:08:47 PM
I'm trying to write a little helper script to switch between AF modes using a key on the camera, preferably the DoF preview key or AF-ON.

Is there a way to access these keys or? They're not listed in the lua script documentation...

I'd like to toggle from one shot (with expansion) and AI servo (set point then tracking) using a key, but it seems impossible in the canon menus.
Title: Re: Reading DoF or AF-On key? 5D III
Post by: a1ex on May 02, 2020, 08:24:17 AM
Not straightforward - they share the same button codes with half-shutter.

Long answer: https://www.magiclantern.fm/forum/index.php?topic=24723.0