Are there any scripts that do that?Is it possible to change focus in continuous mode or in half press?
However, the camera would not normally expect focus to change at this point.
I would rate this as fairly high up on the list of potentially hardware-damaging things you can do with CHDK, so I'd suggest experimenting on a camera you wouldn't feel too bad about losing.
Camera specific variation in focus override behavior should also be expected. Particularly, I would expect a better chance of success in MF or AF lock, even if the camera is normally able to override in AF.
=press("shoot_half")
=set_aflock(0) or =set_mf(0)
set_focus(nnn)
Quote from: reyalp on 18 / December / 2017, 16:02:04However, the camera would not normally expect focus to change at this point. Most cameras have a continuous mode where they do auto focus…
But if I use my IXUS and it works, I can’t be sure that my G1x get damaged…
How can I test?I would go into CHDKPTP:...
=set_mf(true) press'shoot_half' repeat sleep(10) until get_shooting() local sd=500 while sd < 100000 do set_focus(sd) click'shoot_full_only' sd=sd*2 sleep(2000) end
If I want to change the focus from 0.5m to 100m in 100 steps. How should the focus change?
Note that this would approximate the "quick" method, for cont mode you'd have to set up the raw hook and do it there.
Code: [Select]=set_mf(true) press'shoot_half' repeat sleep(10) until get_shooting() local sd=500 while sd < 100000 do set_focus(sd) click'shoot_full_only' sd=sd*2 sleep(2000) end
ASSERT!! FocusLensController.c Line 1059
I don't know how widely CHDK focus bracketing has been used.
I’m missing a release’shoot_half’ on the end. Is this a problem?
My S110 crashes immediately after running without any noise Code: [Select]ASSERT!! FocusLensController.c Line 1059
=set_mf(true) local sd=500 set_focus(sd) press'shoot_half' repeat sleep(10) until get_shooting() while sd < 100000 do click'shoot_full_only' sd=sd*2 sleep(2000) set_focus(sd) end
The IXUS160 runs, but the effect is very small. Maybe it’s the depth of field of the small sensor. What about set_mf on the IXUS160? The IXUS160 has no MF Focus Mode.
Quote from: reyalp on 21 / December / 2017, 16:11:43I don't know how widely CHDK focus bracketing has been used. I have looked at some focus bracketing scripts. The most do set_focus before a full shoot.
Make sure things like continuous AF and servo AF are disabled in the Canon menu.
You could also try moving the set_focus so the first is set before the first shot, and the rest are set after, like
=set_focus(500)=set_focus(500000)
Then I see how the focus changes in Liveview. If I do a shoot in chdkptp than the cam crashes sometimes as well (1 from 10 shoots).
To be clear, it crashes if you1) set mf in canon2) Use set_focus, outside of shooting3) shoot several times?
Or is the crash only with the test code that uses set_focus() in half press?
You can try set_aflock() instead of set_mf().
Not sure off hand. I'd probably just try linear e.g. sd_next = 1.05*sd and see if it look OK.
Started by ab Completed and Working Scripts
Started by tkeino Script Writing
Started by Levi Lewis General Discussion and Assistance
Started by Salvatore Chiarelli General Discussion and Assistance
Started by fotoben Script Writing