@title M Mode HDR Stack @param a Number of steps @default a 2@param b Step size (1/3EV)@default b 3@param c Number of Shots@default c 5if a<1 then let a=2if b<1 then let b=3if c<1 then let c=1sleep 1000print "Preparing..."for n=1 to a*b click "left"next nfor s=1 to a*2 print "Shoot", s, "of", a*2+1 for r=1 to c shoot next r for n=1 to b click "right" next nnext sprint "Shoot", a*2+1, "of", a*2+1for r=1 to c shootnext rprint "Finalizing..."for n=1 to a*b click "left"next nend
--[[@title High Dynamic Range--]]print("1) normal") shoot() set_aflock(1) p=get_av96() s=get_sv96() t=get_tv96()print("2) bright") set_tv96_direct(t-192) set_sv96(s) set_av96(p) shoot() print("3) dark") set_tv96_direct(t+192) set_sv96(s) set_av96(p) shoot() set_aflock(0)print("...done")
The HDR script that came with CHDK for the SX230HS is
--[[@title HDR Fast Shooter@param n Number of Steps@default n 5@param s tV step size@default s 96 --]]function fastshoot(a1,s1,t1) set_av96(a1) set_sv96(s1) set_tv96_direct(t1) press("shoot_full_only") repeat sleep(50) until get_shooting() == true release("shoot_full_only") repeat sleep(50) until get_shooting() == falseendset_console_layout(10, 0, 40, 14)print("Started...")if ( get_mode() == false ) then sleep(1000) set_record(1) while ( get_mode() == false) do sleep(100) endendsleep(1000)press("shoot_half")repeat sleep(50)until get_shooting() == true release("shoot_half")repeat sleep(50)until get_shooting() == false set_aflock(1)av=get_av96()sv=get_sv96()tv=get_tv96()print( "av96=", av, "sv96=", sv, "tv95=", tv )tv96val=tv-n*s/2for i=1, n, 1 do print("step=", i, "tv96=", tv96val) fastshoot(av,sv,tv96val) tv96val = tv96val+sendset_aflock(0)print("...done")
thanks, It seems to be working great so far. One of the best exposure bracketing scripts yet
The changes that are needed is the click commands eg click "right" i need them to perform the action of turning the clickwheel to the right or left.
For most shooting conditions, if the required actions are done in all but bright sunlight, the lens will remain at F3.1
I am pretty much new to scripting for CHDK and the reference page does not provide examples for each command (for some it describes and gives an example code for performing 1 action but for the wheel commands, it offers no information
I recorded a video of the script running on my camera (in case anyone wanted to see it in action)
Note : I updated the script a bit. It might even shoot a bit faster now.
Started by bwebb Script Writing
Started by hokolomon « 1 2 » Script Writing
Started by Karmaschinken Script Writing
Started by Fortesque General Discussion and Assistance
Started by KJ7LNW Feature Requests