Hello,
In first, I thank all the people who take part in CHDK.
It is an incredible work.
I use this script, which does not work with the last versions of CHDK.
http://chdk.wikia.com/wiki/UBASIC/Scripts:_an_ultra_fast_HDR_bracketing_script_for_A6xxI think the reason is the nested IF-Statement bug, but I do not know which modification I must do.
Thanks for your help.
Steed
///////////////// The script //////////////////
rem Author ~SuperManu~ inspired by ~Aeropic~
rem For A610 camera
rem May work on others digicII
rem See documentation
@title HDR bracketing
@param a delta en 1/3
@default a 3
@param b (nb images-1)/2
@default b 1
@param c repetitions
@default c 1
rem test input consistency
if b<1 then b=1
if a<1 then a=1
if a>6 then a=6
if b>6 then b = 6
if c<1 then c=1
j=0
rem get the dial mode
rem if <> P, Tv, Av exit
get_prop 0 i
if i = 2 then goto "ok"
if i = 3 then goto "ok"
if i = 1 then goto "ok"
print "P, Tv ou Av ..."
goto "lend"
:ok
rem test if flash set
get_prop 16 f
if f = 2 then goto "ok2"
print "flash OFF ..."
set_prop 16 2
:ok2
rem get Exp compensation value
get_prop 25 i
rem nb steps diaph computation
a=a*32
rem start EV computation
s=i-b*a
b=b*2
rem check focus mode
get_prop 12 y
get_prop 11 x
let v=y
let u=x
sleep 50
if y = 1 then goto "shoot_it"
:ok3
rem try to focus
press "shoot_half"
rem wait for focus (prop 67)
p = 0
set_prop 67 0
do
p = p +1
get_prop 67 j
if p = 100 then
print "focus impossible"
release "shoot_half"
get_prop 11 x
if x=0 then set_prop 11 1 else set_prop 11 0 endif
print "change focus mode"
goto "ok3"
endif
until j = 1
rem switch to manual focus
do
sleep 500
click "down"
sleep 500
get_prop 12 y
until y=1
release "shoot_half"
sleep 300
:shoot_it
rem data take loop based on prop 205
rem initial set of 25 & 26 for the first shot
z=1
set_prop 25 s
set_prop 26 s
for n=1 to (b+1)*c
print "repetition " z "/" c
click "shoot_full"
do
get_prop 205 w
until w=1
if z=c then
s=s+a
set_prop 25 s
set_prop 26 s
z=0
else if z<c then z=z+1
else if z>c then z=1
endif
do
get_prop 205 w
until w<>1
next n
rem switch back to previous focus mode
do
sleep 500
click "down"
sleep 500
get_prop 12 y
get_prop 11 x
until y=v and x=u
set_prop 11 u
set_prop 12 v
rem reset initial values for EV and flash
set_prop 25 i
set_prop 26 i
set_prop 16 f
sleep 300
:lend
let j=0
end
////////////////////////////////////////////