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

Setting focus from scripts or menus

  • 556 Replies
  • 137596 Views
Re: Setting focus from scripts or menus
« Reply #430 on: 21 / June / 2014, 15:45:09 »
Advertisements
The only draw back is that i loose the VIDEO key toggling RAW (as per your mod).
Took another look. 

Here's an complete updated version that has the new MF code,  the patch to use the video key as the DISP key,  and (if I got it right) the ability to toggle RAW with the video key as well.  Please test and report.

https://app.box.com/s/r59zqfvcqd8t5dviybbs

Ported :   A1200    SD940   G10    Powershot N    G16

Re: Setting focus from scripts or menus
« Reply #431 on: 21 / June / 2014, 16:18:11 »
Took another look.
Here's an complete updated version that has the new MF code,  the patch to use the video key as the DISP key,  and (if I got it right) the ability to toggle RAW with the video key as well.  Please test and report.

Success! The infinity script works fine and the VIDEO key toggles RAW.
I've no idea what the patch file is for and how to manage it.
I'll make more tests tomorrow, even with other scripts.

Re: Setting focus from scripts or menus
« Reply #432 on: 21 / June / 2014, 16:31:09 »
Success! The infinity script works fine and the VIDEO key toggles RAW.
One last test - can you use the Video key as the DISP key in the link > OSD Layout Editor to toggle the movement scaling?  If it's working correctly,  pressing the Video key should change how far the icons move when you press the up,down,left,or right keys.

Quote
I've no idea what the patch file is for and how to manage it.
Not a problem.  I just left it there so I don't lose it while working on other stuff.  If everything works,  I'll submit it as a patch.
Ported :   A1200    SD940   G10    Powershot N    G16

Re: Setting focus from scripts or menus
« Reply #433 on: 21 / June / 2014, 16:40:45 »
One last test - can you use the Video key as the DISP key in the link > OSD Layout Editor to toggle the movement scaling?  If it's working correctly,  pressing the Video key should change how far the icons move when you press the up,down,left,or right keys.

On OSD Layout Editor the VIDEO key toggles the movement scaling correctly (s: 1<->10).


Re: Setting focus from scripts or menus
« Reply #434 on: 21 / June / 2014, 19:33:57 »
@ waterwingz

Would you upload again the rev. 3469 you made before the VIDEO toggle mod?
Testing the infinity script with night shots right now it failed ... sigh
Not sure it was just camera shake, but i have a suspicion...
In any case i've to test the script in daylight.

Re: Setting focus from scripts or menus
« Reply #435 on: 21 / June / 2014, 19:59:26 »
Would you upload again the rev. 3469 you made before the VIDEO toggle mod?
Testing the infinity script with night shots right now it failed ... sigh
Not sure it was just camera shake, but i have a suspicion...
In any case i've to test the script in daylight.
What does "failed" mean?  Tell me in detail how you are testing?  Does it lock at infinity and then release or never lock for example.  Are you running the script on startup or manually via the shutter button in <ALT> mode?  Are you watching the SD override setting using the CHDK OSD display icon?

I don't keep old versions around.  The MF changes in both version were the same - I created both from the same patch file.   If MF is not working it's not related to the Video toggle patch - they are two different things.

« Last Edit: 21 / June / 2014, 20:05:27 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16

Re: Setting focus from scripts or menus
« Reply #436 on: 21 / June / 2014, 20:35:53 »
Would you upload again the rev. 3469 you made before the VIDEO toggle mod?
Testing the infinity script with night shots right now it failed ... sigh
Not sure it was just camera shake, but i have a suspicion...
In any case i've to test the script in daylight.
What does "failed" mean?  Tell me in detail how you are testing?  Does it lock at infinity and then release or never lock for example.  Are you running the script on startup or manually via the shutter button in <ALT> mode?  Are you watching the SD override setting using the CHDK OSD display icon?

I don't keep old versions around.  The MF changes in both version were the same - I created both from the same patch file.   If MF is not working it's not related to the Video toggle patch - they are two different things.

I'm running the script manually via the shutter butt.
The DOF OSD says inf/inf/inf.
With script running the focus is locked (the camera doesn't focus other subjects) but distant buildings in frames are blurred. The focus isn't locked to infinite.
With the rev 3462 the camera was focusing despite of the running script.

Now, please, consider that here is 2:30 AM, i'm a bit tired and demoralized.
I'll keep fighting again with script tests tomorrow in daylight.

PS i've to reset (off/on) the camera to get it focus normally after the script

Re: Setting focus from scripts or menus
« Reply #437 on: 21 / June / 2014, 20:54:38 »
I'm running the script manually via the shutter butt.
Good.

Quote
The DOF OSD says inf/inf/inf.
Also good - that's what we want to see !

Quote
With script running the focus is locked (the camera doesn't focus other subjects) but distant buildings in frames are blurred. The focus isn't locked to infinite.
That script does not actually stay running.  It starts,  sets the camera in MF mode, and then sets the focus to infinity.  They it stops running and exits <ALT> mode.  You are back to regular Canon shooting mode except the focus is in MF mode and the focus setting should stay at infinity.

Quote
With the rev 3462 the camera was focusing despite of the running script.
So now it's no longer refocussing because of the patch I made (this is good).  But maybe it's focused at the wrong distance?

Quote
Now, please, consider that here is 2:30 AM, i'm a bit tired and demoralized. I'll keep fighting again with script tests tomorrow in daylight.
We don't usually give up on anyone willing to keep testing.

Quote
PS i've to reset (off/on) the camera to get it focus normally after the script
Excellent news - that means the script is getting the camera into MF mode and it is staying there.  The issue seems to be where it sets the actual focus when it's told to set it at infinity.  Believe it or not, this is good progress !
Ported :   A1200    SD940   G10    Powershot N    G16


Re: Setting focus from scripts or menus
« Reply #438 on: 22 / June / 2014, 04:07:43 »
Take a test in daylight it is much easier ... trust me.
Findings:
-the infinity script (on rev. 3469) locks the focus
-the focus isn't locked to infinite, but to close subjects (less than 1 mt) (*)
-the camera is stuck to focusing close subjects until an off/on

(*)this is very strange, i'm quite sure that in previous test with rev. 3469 (before the Video key mod) i got focus to infinite or near. But i could be wrong cause my aging brain..hope it was the poor light at time of first test

[OT] On the wide side the lens of the ixus 125 is quite a 22mm equivalent on RAW frames. Very happy with this! Comparison made with my sony lens DT 11-18mm (equivalent range of 16.5-27mm) on reflex [/OT]
« Last Edit: 22 / June / 2014, 07:54:03 by fabri22 »

Re: Setting focus from scripts or menus
« Reply #439 on: 22 / June / 2014, 09:20:37 »
Take a test in daylight it is much easier ... trust me.
Findings:
-the infinity script (on rev. 3469) locks the focus
-the focus isn't locked to infinite, but to close subjects (less than 1 mt) (*)
-the camera is stuck to focusing close subjects until an off/on
This is very interesting.  It suggests that if the CHDK set_focus() function is given 0xFFFFFFFF (-1) as a setting, the camera does not actually focus at infinity.

Quote
(*)this is very strange, i'm quite sure that in previous test with rev. 3469 (before the Video key mod) i got focus to infinite or near. But i could be wrong cause my aging brain..hope it was the poor light at time of first test

Title text: Correlation doesn't imply causation, but it does waggle its eyebrows suggestively and gesture furtively while mouthing 'look over there'.
http://en.wikipedia.org/wiki/Correlation_does_not_imply_causation

You might recall (having had a little more sleep) that I made another change about that time and update the infinity.lua script.  The change was from set_focus(50000) to set_focus(-1) (see my comment above). 

You can still get the earlier version of the script here :
http://chdk.setepontos.com/index.php?topic=11078.msg113719#msg113719
I've also attached it below.

One more retest ?
« Last Edit: 22 / June / 2014, 09:23:00 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16

 

Related Topics