supplierdeeply

How to delay script slightly

  • 2 Replies
  • 619 Views
How to delay script slightly
« on: 20 / March / 2014, 10:15:22 »
Advertisements
Dear Group I hope you can help me as I'm new to CHDK.  I have been trying out some of the default scripts with great success apart from when i press the shutter button on my A550 on for example the HDR script the initial photo is taken immediately, raising the issue of camera shake if i don't use a tripod.

Is there a way to delay the initial shot by a couple of seconds?

Many thanks

Re: How to delay script slightly
« Reply #1 on: 20 / March / 2014, 11:13:15 »
How about this modification to hdr.lua from the default scripts :
Code: [Select]
--[[
@title High Dynamic Range
@param f 1/2 stop range
@default f 4
--]]

sleep(2000)  --  <- add this line to start of script for 2 second pause

print("1) normal")
  shoot()

  set_aflock(1)
  p=get_av96()
  s=get_sv96()
  t=get_tv96()

print("2) bright")
  set_tv96_direct(t-(f*48))
  set_sv96(s)
  set_av96(p)
  shoot()

print("3) dark")
  set_tv96_direct(t+(f*48))
  set_sv96(s)
  set_av96(p)
  shoot()

set_aflock(0)
print("...done")
                                                                                                                                                                                                                                                                         

If you are using the uBASIC script,  add this line :
Code: [Select]
  sleep 2000
Ported :   A1200    SD940   G10    Powershot N    G16

Re: How to delay script slightly
« Reply #2 on: 20 / March / 2014, 16:14:03 »
Oh thank you so much, that worked an absolute treat, jolly kind of you.

 

Related Topics