When using " video interleave" mode i like to set focus mode to AFL@Infinity with video. I'm shooting with IXUS 300ELPH and it sucks with autofocus in video. For pictures i'm using setting "none" with good results. So maybe this script should have separate parameter for video and picture focus?
I don't have a lot of experience with trying to use manual focus with video (although I have a little experience with MF and regular shooting) so I'm not prepared to try this right now. But the nice part about CHDK scripts is that you can edit and modify to suit your needs and desires.
So far i simply tried to force focus mode to AFL everytime video is recorded. It seems to work ok with chdk 1.2 but not with chdk 1.3? With 1.3 it seems to lock focus everytime very near like <2.5m:
You now have my full and undivided attention. Would you mind enabling logging in the script parameter in the CHDK Script menu and run the test with both 1.2.0 and 1.3.0 and post the logs here?
-- Video mode
function check_video(shot)
local capture_mode
if ((video_mode>0) and(shot>0) and (shot%video_mode == 0)) then
unlock_focus()
sleep(500)
focus_mode = 2 -- Change focus mode to AFL @ Infinity??
lock_focus()
printf("Video mode started. Button:"..tostring(video_button))
......
printf("Video mode finished.")
sleep(1000)
unlock_focus()
focus_mode = 0 --mode back to 0 (None)
sleep(500)
lock_focus()
return(true)
else
return(false)
end
end
On quick inspection, this looks okay. Nice hack!
By the way is there any good editor that is made specially for scripts?
Any programming editor that supports syntax highlighting for Lua will work. For Windows I'd suggest notepad++ although there are a raft of others.