I have tried several focus bracketing scripts on my S2 IS camera.
When used with the built-in flash, they randomly(?) stops at the shoot command.
Script example:
-----------------------
rem Leif Karlsson
@title Focus bracketing
@param n Max number of steps
@default n 200
sleep 2000
for s=1 to n
shoot
get_focus f
get_dof d
g=f+d*2/3
set_focus g
print g,d
if g>50000 then s=n
if d<0 then s=n
next s
end
-----------------------
It can randomly(?) stop at the first "shoot" or any other. Sometimes it works until the end.
If it stops and I finish the script with the button, and start it again, it makes 2 loops for every shoot-command.
I have "CHDK-DE_s2is-100f-1.1.0_rev_2228" installed.
Any explanation for this behaviour and a remedy ?
By the way, I have tried "sleep" in the script, but didn´t help.