Which script would you recommend for that? I was hoping to see some meters last night to do some testing, but that didn't happen, so now I'm on a time crunch. Most of the scripts I've seen adjust time between shots, but I've not seen anything about adjusting exposure times (or perhaps I don't know what I'm looking for.)
[EDIT] What's the point of taking dark frame pics? Does that help in Photoshop?[
I'm getting an "ukn stmt" which I presume means unknown statement, probably related to the "native call" feature you wrote about. Is this script not compatible with the firmware and/or model of my camera? Canon 300 ELPH Powershot
unk stmt is a ubasic error. To run a lua script, the file extension must be .lua
--[[@title MLapser@param d Shots per Dark Frame@default d 50--]]-- close mechanical shutterfunction closeshutter() if (call_event_proc(closeproc) == -1) then print("closeshutter failed") endend-- open mechanical shutterfunction openshutter() if (call_event_proc(openproc) == -1) then print("openshutter failed") endend--print_screen(1)if (type(call_event_proc) ~= "function" ) then error("your CHDK does not support native calls")endbi=get_buildinfo()if bi.os=="vxworks" then closeproc="CloseMShutter" openproc="OpenMShutter" if (call_event_proc("InitializeAdjustmentFunction") == -1) then error("InitAdjFunc failed") endelseif bi.os=="dryos" then closeproc="CloseMechaShutter" openproc="OpenMechaShutter" if (call_event_proc("Mecha.Create") == -1) then error("Mecha.Create failed") endelse error("Unknown OS:" .. bi.os)endnpic=0press("shoot_half")while(not get_shooting())do sleep(100) endrepeat dark=(npic%d==0) npic=npic+1 print(npic,dark) if(dark)then closeshutter() end ecnt=get_exp_count() press("shoot_full_only") repeat sleep(20) until(get_exp_count()~=ecnt) release("shoot_full_only") if(dark)then openshutter() end sleep(10)until false
--[[@title ShLapser--]]press("shoot_half")while(not get_shooting())do sleep(100) endrepeat ecnt=get_exp_count() press("shoot_full_only") repeat sleep(20) until(get_exp_count()~=ecnt) release("shoot_full_only") sleep(10)until false
I have a few more checks in my script at startup - making sure the camera is in P mode and the flash is off. It also switches to shooting mode automatically if you accidentally start the script in playback mode. My next step is to add a bit of code to start & stop shooting based on time of day. I really don't want to get up at 2 AM to start the camera or return at 6 AM when then sun comes up. So I added the checks listed above because I won't be there at 3 AM to notice that I forgot to disable the flash.
Do you have an external supply? I suppose a wide angle lens attachment would help too.
Started by diegorodriguez
Started by ProjectHaxor
General Discussion and Assistance
Started by dutchie
Creative Uses of CHDK
Started by Intheswamp
Creative Uses of CHDK
Started by csengeri