It seems to me that i've found a "magic" number for the set_focus() command:
5836.
Still not sure if it sets focus to infinite on ixus 125 because now i can test only indoor (nighttime here).
At least focus seems to be forward than previous tests.I took the liberty of editing your focus3 script (with notepad
) and through trials&errors changed "distance" numbers growing from 5828 to 5848.
On exiftool (Canon Maker Notes) all set_focus() values below 5836 give a "Focus Distance Upper" of 3.83 mt,
all values above 5836 give a "Focus Distance Upper" of 65.53 mt (infinity on regular landascapes shots).
5836 is the first set_focus() value that gives 65.53 mt.
Running the scipt "3.83 mt" returns on screen a get_focus() value of 3805, "65.53 mt" corresponds to -1
Obviously i've to test it again in daylight (tomorrow).
EDIT ...
sadly
A bit more testing with all room lights on and i can report that 5836 is not the real infinity value.
There is not any percepible difference in focus among the series. Focus stays locked at a short distance in all shots.
However it remains a sort of "transition" set_focus value
... for sure it's good for the Lottery