I have worked out how to calculate the correct position, but, as I say, you need to know the number of brackets, or assume the user has requested the correct number on the Canon side. As to triggering this, one was would a be to let the subj_dist_bracket be allowed to be -1. That is -1 triggers the landscape stacking option. I know it’s a bit experimental, and some would say messy, but I would like to see it running on my g7X. But I am not a compiler of C, so would need to rely on others.
--[[@title Landscape Bracketing@chdk_version 1.3--]]-- mainsleep(3000) -- delayh = get_hyp_distx = get_focus()x_start = xrepeat shoot() x = x*h/(h - 2*x) -- next focus position set_focus(x) sleep(2000)until ( get_near_limit > h/2 )print("...done")exit_alt()
dof=get_dofinfo()...x = dof.hyp_dist...until ( dof.near > h/2 )
--[[@title Landscape Bracketing@chdk_version 1.3@param c Script Delay (s) @default c 3 @range c 0 5@param b Bookends? @default b 0 @values b Yes No--]]s_delay = 1000sleep(c*1000)dof = get_dofinfo()h = dof.hyp_distx = get_focus()x_start = xs=get_tv96()if x < h then if b == 0 then set_tv96(960) shoot() set_tv96(s) end while ( 2*x < h) do shoot() x = x*h/(h - 2*x) -- next focus position set_focus(x) sleep(s_delay) dof = get_dofinfo() end set_focus(h) sleep(s_delay) shoot() set_focus(2*h) sleep(s_delay) shoot() if b == 0 then set_tv96(960) shoot() set_tv96(s) endendset_focus(x_start)print("...done")exit_alt()
My Landscape Bracketing Script (LBS) is running at a proof of principle level.
One matter I could get help on is to answer this question: why dos the script show up when I go to Alt mode. None of the other scripts in that folder show up, just mine.
PS how do you get line spaces in the post
I don't understand why my script shows up.
Started by Microfunguy
« 1 2 3 4 »
Started by moshots
General Help and Assistance on using CHDK stable releases
Started by skrylten
« 1 2 ... 7 8 »
Started by redfordl22
Started by pigeonhill
« 1 2 »
Completed and Working Scripts