Magic Lantern Forum

Developing Magic Lantern => Scripting Corner => Scripting Q&A => Topic started by: Walter Schulz on June 10, 2013, 07:25:20 PM

Title: Read maximum aperture from lens?
Post by: Walter Schulz on June 10, 2013, 07:25:20 PM
Hello!

Maybe scripting offers a solution for those still photographers among us with zoom lenses changing maximum aperture during zoom and more than mediocre lens performance wide open. You want to use 1 to 2 stops down, depending on lens and output needs. With constant max aperture (as in 24-70/2.8) this is not a problem, but with 17-85 (to name one of the beasts) it's not that easy.

Is there a way to read the current max aperture from the lens (which will vary when zoomed)?

Ciao, Walter
Title: Re: Read maximum aperture from lens?
Post by: a1ex on June 10, 2013, 07:33:22 PM
In lens.c, lens_info.raw_aperture_min and raw_aperture_max. These are not yet exposed to PicoC, but TCC should see them.

Note: raw_aperture_min is minimum raw value (that's wide open).