DoF Bracketing script, need help Please! - LUA Scripting - CHDK Forum  

DoF Bracketing script, need help Please!

  • 1 Replies
  • 3774 Views
DoF Bracketing script, need help Please!
« on: 30 / April / 2010, 04:01:00 »
Advertisements
Hello there
This is my first LUA scripting post after having problems with uBasic

Challenge:
Make a script that changes values in CHDK Bracketing menu and then shoot images!

Is something like this possible? (remember I have only written one script in my life, the simple one below)

Changing settings in CHDK ALT Menu | extra photo operation | braceting in continius mode

Subj.Dist Bracket Value (MF)
Value Factor (mm)
Bracketing Type


my example ( I don't know even if this is possible)

set Bracketing type = +
C=Bracketing type
A=Subj.Dist Bracket Value (MF)
B=Value Factor (mm)
if A <3 then A=3
if B <1 then B=1

I want A, B and C to be changable from the ALT Menu like other scripts

Really ned help on this PLEASE 

---------------------------------------------
This is what my script does today but it is very slow:
print "Preparing..."
:Start
click "shortcut"
sleep 200
click "menu"
sleep 200
click "set"
sleep 200
click "down"
sleep 200
click "down"
sleep 200
click "down"
sleep 200
click "down"
sleep 200
click "down"
sleep 200
click "down"
sleep 200
click "down"
sleep 200
click "down"
sleep 200
click "down"
sleep 200
click "down"
sleep 200
click "right"
sleep 200
click "down"
sleep 200
click "down"
sleep 200
click "right"
sleep 200
click "right"
sleep 200
click "down"
sleep 200
click "menu"
sleep 200
click "shortcut"
sleep 200
click "shoot"
sleep 200
click "shoot"
sleep 200
click "shoot"
sleep 200
click "shoot"
sleep 200
click "shoot"
sleep 200

Br,
Hamak
Norway

Re: DoF Bracketing script, need help Please!
« Reply #1 on: 02 / May / 2010, 15:46:35 »
take a look at the lua libs, particularly the cam.smartShoot function. it does exposure and sets a number of variables at exposure time. you should be able to use it to accomplish what you need to.

maybe you're interested in something like this? http://chdk.wikia.com/wiki/DoF_Stacking

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal