Re: How to properly set aperture, iso and shutterspeed?

Jim Easterbrook <[email protected]> Thu, 22 Oct 2020 12:43:30 +0100
Newsgroups gmane.comp.multimedia.gphoto.user
Message-ID <[email protected]>
On 22/10/2020 12:20, Jochen Keil wrote:
> 
> Actually, for 'f-number' it's floats only. But for 'shutterspeed' and 
> 'iso' it's a string (const char *). I've added a full code example below.
> 
>      > Is there an easy way to set shutterspeed and f-number to the next
>     value
>      > or do I have to somehow figure out what 10/10 means and translate
>     it to
>      > 1? I think I could use a static table for that but that seems to be
>      > laborious and error-prone.
> 
>     The Python Fraction type is probably the easiest way to convert the
>     strings '10/10' and '1' to the same result.
> 
> 
> So, did I get it right, there is no easy way to step through camera 
> settings, not even using the native C interface?

As the f-number is a float it's not clear what the steps would be. I 
assume some cameras allow values not in the usual f/2, f/2.8, f/4, f/5.6 
sequence. I suppose you could set values then read back the actual value 
to find out what steps your camera uses.
-- 
Jim Easterbrook                 <http://www.jim-easterbrook.me.uk/>