Setting focus from scripts or menus - page 42 - General Discussion and Assistance - CHDK Forum

Setting focus from scripts or menus

  • 601 Replies
  • 218921 Views
Re: Setting focus from scripts or menus
« Reply #410 on: 19 / June / 2014, 07:23:24 »
Advertisements
    The SD override thing does not set the AF at all despite submitted values  :(
    Strange.  According to your testing (and others), the ixus125 will set focus without AFL or MF modes being enabled. I have not looked at the menu based SD Overrides yet (next project I guess) but the #defines for the CHDK 1.3.0 build should let setting focus work.  Can you try downloading the stable version for your camera ( 1.2.0 ), retesting with that, and reporting results here?

    Very important - make sure Servo AF is set to OFF in the Canon menu. Continuous AF OFF too if that's an option.

    Quote
    Just a working "infinite lock" would be enough for night shoots. The AF of this little camera hangs in low lights.
    Well, you could probably run a simple short script (even autostart it on power up) that sets MF mode and locks focus at infinity while the camera remains powered on.   Let me know if you'd like to try that?

    Otherwise, not related to CHDK, you could point the camera "off into the distance",  and then set the camera into Canon AFL mode. From the ixus125 manual -  "With the shutter button pressed half-way, press the < (left arrow) button. The focus is now locked and AFL is displayed". [/list][/list]
    Ported :   A1200    SD940   G10    Powershot N    G16

    *

    Offline mmcon

    • *
    • 10
    Re: Setting focus from scripts or menus
    « Reply #411 on: 19 / June / 2014, 13:18:42 »
    Ok. I tested this more thoroughly. There is something funny happening in in the subject override distance menu code in in "enhanced photo operations" in trunk rev 3462 and 3464(must be the case with 3465 too I guess dont know since which rev the problem might have started) 
    I am not able to change the value from 0 at the beginning with LEFT/RIGHT. I am able to cycle through off, on, Inf. 

    However once the value changes from zero (will explain this below) I am able to change it with LEFT/RIGHT.

    The way this change occurs is due to setting Inf in the sd override menu, focusing at a distance, going back into SD override menu, a value other zero is now displayed when I cycle through Off/On from Inf. This was the case with rev. 3464. With 3462, I had to enable DOF calc display ON, as well as turn on someother override functionality likeISO initially for the value to change from zero when cycling through OFF/ON/INF in the SD override menu. Might be other something else that triggers this too. But the main point is the inconsistency in the entering the values across the new revs.

    I dont know if I made sense. I can get by with this bug. Thought will report on it.

    If the SD override value is very small, and you zoom the lens to the telephoto end, then the SD override distance can become less than the distance from the sensor to the front of the lens. In this case the menu displays 0. If you keep adjusting it, the value will eventually change.

    This should be fixed in revision 3468 (1.3 only for now).

    Phil.

    I can confirm the fix is now working swell!! Thanks philmoz. Would be great if the zoom lever focus functionality gets fixed before the next stable release.

    Re: Setting focus from scripts or menus
    « Reply #412 on: 19 / June / 2014, 13:26:16 »
    Would be great if the zoom lever focus functionality gets fixed before the next stable release.
    FWIW,  the 1.3.0 development (or "unstable") release is generally no less stable than the 1.2.0 stable version.  The difference is that new things get put into 1.3.0 and 1.2.0 stays the same.  Major bugs in 1.3.0 are rare and are usually caught right away. I can only think if one or two times I've seen that happen in the last four years.

    So I use the dev version (currently 1.3.0) all the time for its advanced features.
    Ported :   A1200    SD940   G10    Powershot N    G16

    *

    Offline mmcon

    • *
    • 10
    Re: Setting focus from scripts or menus
    « Reply #413 on: 19 / June / 2014, 13:51:27 »
    Nice !   Will look forward to changes in trunk revisions.

    Re: Setting focus from scripts or menus
    « Reply #414 on: 19 / June / 2014, 14:05:51 »
    Will look forward to changes in trunk revisions.
    Ummm .. that was kind of my point.  The "stable" version does not get changes other than bug fixes. Those all go into the "development" or "unstable" version.
    « Last Edit: 21 / June / 2014, 00:16:08 by waterwingz »
    Ported :   A1200    SD940   G10    Powershot N    G16

    Re: Setting focus from scripts or menus
    « Reply #415 on: 19 / June / 2014, 15:37:29 »
    Strange.  According to your testing (and others), the ixus125 will set focus without AFL or MF modes being enabled. I have not looked at the menu based SD Overrides yet (next project I guess) but the #defines for the CHDK 1.3.0 build should let setting focus work.  Can you try downloading the stable version for your camera ( 1.2.0 ), retesting with that, and reporting results here?

    Very important - make sure Servo AF is set to OFF in the Canon menu. Continuous AF OFF too if that's an option.
    I've tested the sd override with the stable CHDK version. Doesn't work too. Distant subjects are blurred when i set the SD to 65535 (with or without a previous AFL lock - Servo AF to OFF - no Continuous AF in menu - camera on tripod).

    Quote
    Well, you could probably run a simple short script (even autostart it on power up) that sets MF mode and locks focus at infinity while the camera remains powered on.   Let me know if you'd like to try that?

    Of course i'd like to try that script  ::) ... with that script running can i load other scripts?

    Quote
    Otherwise, not related to CHDK, you could point the camera "off into the distance",  and then set the camera into Canon AFL mode...

    In night/dark landscapes, starry skies, etc  this camera locks focus difficult

    Please excuse my bad english and thanks again for your kind replies

    Re: Setting focus from scripts or menus
    « Reply #416 on: 19 / June / 2014, 17:03:53 »
    I've tested the sd override with the stable CHDK version. Doesn't work too. Distant subjects are blurred when i set the SD to 65535 (with or without a previous AFL lock - Servo AF to OFF - no Continuous AF in menu - camera on tripod).
    Thank you for testing.   It confirms that we have not broken anything new in the 1.3.0 version. 

    Incidentally, if you go into  CHDK Settings  ->  OSD Settings -> DOF Calculator  and enable Show Subj. Dist. in Misc [ * ] you can get an onscreen display of the current focus settings.  There are several ways to configure how it looks - play around and find something you like?

    Quote
    Quote
    Well, you could probably run a simple short script (even autostart it on power up) that sets MF mode and locks focus at infinity while the camera remains powered on.   Let me know if you'd like to try that?
    Of course i'd like to try that script  ::) ... with that script running can i load other scripts?
    Only one script can run at a time.  However, you can run it first and the camera will stay in MF mode as you shoot normally. Or you can edit other scripts so that they set focus at infinity for you.  What script(s) are you using?
    Ported :   A1200    SD940   G10    Powershot N    G16

    Re: Setting focus from scripts or menus
    « Reply #417 on: 19 / June / 2014, 18:22:01 »
    Of course i'd like to try that script  ::)
    Here you go - script attached.  You can either run it normally or enable it at startup via the Script menu Autostart [ On ] option.

    You probably want to enable the OSD display of SD when you test this (per my earlier comment).
    Ported :   A1200    SD940   G10    Powershot N    G16

    Re: Setting focus from scripts or menus
    « Reply #418 on: 19 / June / 2014, 18:23:08 »
    Enabling the Show Subj. Dist. in Misc of DOF Calculator  it shows S/NL/FL: inf/inf/inf when SD 65535, but distant subjects are always out of focus.
    On contrary closer subjects in range of 1-4 meters are in focus, subjects farther than 5-6 meters are out of focus (with SD=65535)  ???
    Obviously by disabling the sd override the camera focuses correctly ... struggling a bit in low lights.

    Incidentally i can't toggle RAW with VIDEO key (as per your mod) when the sd override is enabled, it sets the inf. ... but, who cares?

    Quote
    What script(s) are you using?

    Just few tests with intervalometers (Accurate and Ultimate) and MDFB2013 ... still learning the CHDK  ::)

    Here you go - script attached.

    oohhh, thank you :)



    EDIT
    Tested. I load the infinity script, press the shutter button,it says "started",take a shot ... and this little gem focuses to a closer object despite of the running script.  ???
    I'll test it further tomorrow in the morning. Now it's time for bed here.

    EDIT #2
    I can confirm that neither the "infinity" script or the SD override (65535) set focus to infinite on my ixus 125 ... sadly.
    For sure something is wrong with me or this camera porting, not the CHDK.

    EDIT#3
    Running the "infinity" script on stable CHDK i get this message:
    ":13: attempt to call global 'set_mf' (a nil value) ***TERMINATED***
    « Last Edit: 20 / June / 2014, 05:38:24 by fabri22 »

    Re: Setting focus from scripts or menus
    « Reply #419 on: 20 / June / 2014, 08:54:22 »
    The infinity script uses the much improved focus ability of 1.3.0. It will not work with 1.2.0 unless I recode it.

    Also, I guess we could try setting infinity to a large value than 65535 and see what happens. Might take a code change rather than a script though.

    I'll look.
    Ported :   A1200    SD940   G10    Powershot N    G16

     

    Related Topics


    SimplePortal © 2008-2014, SimplePortal