ok, i will test as first these 2 scripts and give a feedback
@title yet another DOF stacker - propset4@param a move DOF@default a 3@param b by (a/b)@default b 5@param e take n shots/step@default e 1@param g delay 1st shot (sec)@default g 5@param j HYP checking@default j 1@param o max gaps in DOF@default o 0rem S(hooting in progress-propcase):rem for Propset4 : 210S=210rem D(rive mode -property case) - Propset4 : 102D=102rem C(ontinuous-value for drive mode)C=1if a<1 then a=1if b<1 then b=2if e<1 then e=1if g<1 then g=5if (j<0 or j>1) then j=1if o<0 then o=0G=0if e>1 then if (get_prop D)<>C then print "set drive mode" print "to continuous" goto "the_end" endifendiff=get_focusprint "-set M/Av"print "-set focus"print "-set MF"print "-zoom_out for nearest"print "-zoom_in for inf"wait_clickclsprint "-menu continues"print "-set MF"print "-zoom_out for nearest"print "-zoom_in for inf"doif is_pressed "shoot_half" then gosub "press_release_shoot_half"if is_pressed "left" then gosub "press_release_left"if is_pressed "down" then gosub "press_release_down"if is_pressed "right" then gosub "press_release_right"if is_pressed "up" then gosub "press_release_up"if is_pressed "set" then gosub "press_release_set"if is_pressed "macro" then gosub "press_release_macro"if is_pressed "mf" then gosub "press_release_mf"if is_pressed "flash" then gosub "press_release_flash"if is_pressed "erase" then gosub "press_release_erase"if is_pressed "zoom_in" then goto "set_inf"if is_pressed "zoom_out" then goto "set_near"if is_pressed "menu" then goto "theotherside_set"until 1<0:set_infset_focus 65535goto "theotherside_set":set_near rem smallest focus value for A710 is actually 59, what about A6x0 and S3?set_focus 55:theotherside_setclsfor t=0 to g-1 print "waiting", (g-t) "sec" sleep 930next tclsl=get_focusif f<l then goto "order_ok"t=ff=ll=t:order_okset_focus ft=f:loop_shoot rem last shot @ defined focus if t>=l then goto "shoot_last" gosub "sub_shoot_count" rem no need for additional shots, if last was beyond HYP if (f>=h and j=1) then goto "beyond_hyp" rem new focus @ current_DOF*a/b m=d*a/b rem better move new focus at least a bit if m<1 then m=1 i=f t=(f+m) set_focus t f=get_focus if f=t then goto "loop_shoot" rem if you don't use review, you can (don't have to) rem the following line (used to cancel review) click "shoot_half" rem if focus didn't move at all/is wrong, move it with right&left :loop_inc if f>t then goto "loop_dec" if f=t then goto "loop_shoot" click "right" f=get_focus goto "loop_inc" :loop_dec if f<=t then goto "loop_shoot" u=get_focus click "left" f=get_focus rem if wasn't able to move focus if (f<=i and o=0) then goto "didnt_focus" if (f<=i and o>0) then if (G>=o or u<=i) then goto "didnt_focus" G=G+1 print "gap in DOF (" G " of max. " o ")" set_focus u goto "loop_shoot" endif goto "loop_dec":didnt_focusprint "ERROR:"if G>0 then print "possible gaps: " G ","print "couldn't shoot"print "gapless DOF"goto "the_end":beyond_hypif G>0 then print "possible gaps: " G "," else print "all OK:"print "last shot(s)"print "beyond HYP"goto "the_end":shoot_lastprint "shoot_last"set_focus lgosub "sub_shoot_count"if G>0 then print "possible gaps: " G "," else print "all OK:"print "last shot(s)"print "@ defined location":the_endend:sub_shoot_countC=get_exp_countpress "shoot_half"press "shoot_full"dountil (get_exp_count-C)>=ed=get_dofh=get_hyp_distrelease "shoot_full"dountil get_shooting=0return:press_release_shoot_halfpress "shoot_half"while is_pressed "shoot_half" if is_pressed "down" then gosub "press_release_down" if is_pressed "mf" then gosub "press_release_mf" if is_pressed "macro" then gosub "press_release_macro"wendrelease "shoot_half"return:press_release_leftpress "left"dountil is_pressed "left" = 0release "left"return:press_release_rightpress "right"dountil is_pressed "right" = 0release "right"return:press_release_uppress "up"dountil is_pressed "up" = 0release "up"return:press_release_downpress "down"dountil is_pressed "down" = 0release "down"return:press_release_setpress "set"dountil is_pressed "set" = 0release "set"return:press_release_erasepress "erase"dountil is_pressed "erase" = 0release "erase"return:press_release_macropress "macro"dountil is_pressed "macro" = 0release "macro"return:press_release_mfpress "mf"dountil is_pressed "mf" = 0release "mf"return:press_release_flashpress "flash"dountil is_pressed "flash" = 0release "flash"return
i've tried the script "yet_another_DOF_stacker" with your changes, but the result is not correctly
after searching i've found a script named "fokus-reihen-dofinfo.lua" http://forum.chdk-treff.de/viewtopic.php?f=7&t=2510if script is started u can choos focus begin, focus start and then pressing "set" sometimes it runs great, but sometime u will get the info ( it will make for example 14 pictures ) but runs, make 2 different and one unsharp photo. my question: " must something changed (on script) for using on S100" ?
--[[@title Focus-Stacker-LUA]] set_console_layout(1, 0, 45, 12) press( "shoot_half" )repeat sleep(50)until get_shooting() == true e = get_dofinfo()f = e.focal_length/100q = 65535n = ((e.hyp_dist/(2*e.focus)-e.hyp_dist/(2*q))*e.focus)/((10*e.focus-f)/10)+1release("shoot_half") repeat sleep(50)until get_shooting() == falseprint ( "Start focus: " .. e.focus ) print ( "Photos: " .. n+1 .. ", F" .. e.aperture/1000 .. ", " .. e.focal_length/1000 .. "mm" ) print ( " " ) sleep (1000)print ( "Focus " .. "Target Focus " .. "DoF-Target" ) shoot ()for i=1,n do h = e.focus+e.dof p = e.dof focus = e.focus if h > e.focus then set_focus (h) shoot () end e = get_dofinfo() focusdiff = e.focus-focus if i==n and e.focus_valid==false then set_focus (65535) shoot () e = get_dofinfo() print ( "" .. focus .. " " .. h .. "-".. e.focus .. " " .. p .. "-" .. focusdiff ) end print ( "" .. focus .. " " .. h .. "-".. e.focus .. " " .. p .. "-" .. focusdiff )end
i've checked these script's, but it is not so the result what i would have.
another question (digital zoom) - on S100 is the max. 20xpossible to expand that digital zoom with chdk ?
Started by sCattleya General Help and Assistance on using CHDK stable releases
Started by Dr. M General Chat
Started by SkyWalker9 Script Writing
Started by SkyWalker9 « 1 2 » Completed and Working Scripts
Started by genosmm RAW Shooting and Processing