intervelometer problem question with canon g9 - page 2 - General Discussion and Assistance - CHDK Forum supplierdeeply

intervelometer problem question with canon g9

  • 13 Replies
  • 5057 Views
Re: intervelometer problem question with canon g9
« Reply #10 on: 11 / September / 2012, 10:17:32 »
Advertisements
what script is able to do the half press-wait until camera ready to shoot-full press?
Save this script as focus_int.lua and give it a try :
Code: [Select]
--[[
@title Focus Intervalometer
@param a = interval (sec)
@default a 15
--]]
repeat
    start = get_tick_count()
    press("shoot_half")
    sleep(250)
    repeat sleep(50) until get_focus_ok() > 0
    press("shoot_full")
    sleep(500)
    release("shoot_full")
    repeat sleep(50) until get_shooting() == false
    release("shoot_half")
    sleep(a*1000 - (get_tick_count() - start))
until ( false )
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline lapser

  • *****
  • 1093
Re: intervelometer problem question with canon g9
« Reply #11 on: 11 / September / 2012, 12:58:43 »
Save this script as focus_int.lua and give it a try :
It might be easier to lock the focus rather than waiting for the camera to focus before every shot. You do this with:
set_aflock(1)

If you take a picture that's in focus before starting the script, then this should work:

Code: (lua) [Select]
--[[
@title Intervalometer
@param a = interval (sec)
@default a 15
--]]
set_aflock(1)
repeat
    start = get_tick_count()
shoot()
    sleep(a*1000 - (get_tick_count() - start))
until ( false )
Also, sometimes shoot() returns with get_shooting()==true if you call it too soon (i.e. 1 second interval).  Then it stops taking any pictures. Before returning, shoot() should do something like this:

release("shoot_half")
while(get_shooting())do sleep(10) end
EOS-M3_120f / SX50_100b / SX260_101a / G1X_100g / D20_100b
https://www.youtube.com/user/DrLapser/videos

Re: intervelometer problem question with canon g9
« Reply #12 on: 11 / September / 2012, 13:15:35 »
Save this script as focus_int.lua and give it a try :
It might be easier to lock the focus rather than waiting for the camera to focus before every shot. You do this with:
set_aflock(1)

If you take a picture that's in focus before starting the script, then this should work:
I guess that is simpler but you have pointed out the exact reason I did not do it that way.  If you fail to get good focus on your first picture then every picture in the sequence will be poorly focussed.
« Last Edit: 11 / September / 2012, 13:58:07 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16

Re: intervelometer problem question with canon g9
« Reply #13 on: 11 / September / 2012, 17:34:37 »
what script is able to do the half press-wait until camera ready to shoot-full press?
Save this script as focus_int.lua and give it a try :
Code: [Select]
--[[
@title Focus Intervalometer
@param a = interval (sec)
@default a 15
--]]
repeat
    start = get_tick_count()
    press("shoot_half")
    sleep(250)
    repeat sleep(50) until get_focus_ok() > 0
    press("shoot_full")
    sleep(500)
    release("shoot_full")
    repeat sleep(50) until get_shooting() == false
    release("shoot_half")
    sleep(a*1000 - (get_tick_count() - start))
until ( false )

i'll give it a try and see how it turns out. thanks.


 

Related Topics