The sx260 halted with an unspecified Lua error at about 1500 shots, giving only the "SCRIPT TERMINATED" message. This has happened before on both cameras while writing a log file, but this time I wasn't writing a log, so it must be related to something else.
There isn't anything in CHDK that would print "SCRIPT TERMINATED" - did you mean the "*** TERMINATED ***" message when there is an error in the script?If so it should have displayed an error message as well - what did that say?
set_shot_interval(m,n)if(not single)then press("shoot_full_only") endrepeat if(single)then press("shoot_full_only") end repeat sleeper(10) -- sleeps at least once, so it will yield each loop until get_shot_ready() or is_pressed("menu") -- waits for build_histogram -- if(is_pressed("menu"))then break end if(single)then release("shoot_full_only") end --find meter with lowest exposure (brightest) tvd=-100000 for i=1,nmeters do tx=get_shot_meter(i) if(tvd<tx)then tvd=tx im=i end end --adjust bv as it gets darker bv=tvd+get_shot_meter(0) --bv96 if(bv>=bv1)then bvd=0 elseif(bv<=bv2)then bvd=bvdmax else bvd=((bv-bv1)*bvdmax)/(bv2-bv1) end tv=tv+tvd+bvd+svmin-sv sv=svmin if(tv<tvs)then sv=sv+tvs-tv tv=tvs if(sv>svmax)then tv=tv-(sv-svmax) sv=svmax end end if(tv<tvmin)then tv=tvmin elseif(tv>tvmax)then tv=tvmax end set_exp96(tv,sv) -- aborts script wait too
Started by Lilien
General Help and Assistance on using CHDK stable releases
Started by acorrias
RAW Shooting and Processing
Started by PS
Started by fma
Hello, I'm a NEWBIE - HELP!! (Newbies assistance, User Guides and thank you notes)
Started by yair