Intheswamp
I've still gotta memorize all the key presses on the A1200 so I can turn the lcd off and then start lecshoot.lua.
This will disable the display on your
A1200 automagically and also disable dark frame subtraction for you :
--[[
@title Long-Exposure Continuous Shooting
@param a Exposure Time (Seconds)
@default a 10
@range a 1 60
@param b Number of Shots
@default b 10
@range b 0 9999
@param d Display On
@range d 0 1
@default d 1
@param f Dark Frame Disabled
@range f 0 1
@default f 0
]]
function set_display_key(m) -- click display key to get to desire LCD display mode 0=off, 1=on
if (m==0) then m=2 else m=0 end
local count=5
local clicks=0
sleep(200)
repeat
disp = get_prop(props.DISPLAY_MODE)
if ( disp ~= m ) then
click("display")
clicks=clicks+1
sleep(500)
end
count=count-1
until (( disp==m ) or (count==0))
if (clicks>0 and count==0) then
print("unable to change display")
end
end
--This is an array of TV96 values for exposure times 1-60 seconds.
--It is indexed by the exposure time in seconds.
expVAL = {0, -96, -152, -192, -223, -248, -270, -288, -304, -319, -332, -344, -355, -366, -375, -384, -392, -400, -408, 415, -422, -428, -434, -440, -446, -451, -456, -462, -466, -471, -476, -480, -484, -488, -492, -496, -500, -504, -507, -511, -514, -518, -521, -524, -527, -530, -533, -536, -539, -542, -545, -547, -550, -552, -555, -558, -560, -562, -565, -567}
--This is the main part of the script - CAMERA MUST BE IN CONTINUOUS DRIVE MODE
props=require("propcase")
set_raw_nr(f) -- disable Canon's dark frame reduction if selected
set_display_key(d)
if(b>0)then
b=b+get_exp_count()
end
if(b>9999) then b=b-9999 end -- starts from 1 again
print("exp:",expVAL[a])
sleep(2000)
set_iso_real( 80 )
set_tv96_direct( expVAL[a] )
press("shoot_half")
repeat sleep(50) until get_shooting() == true
press("shoot_full")
repeat sleep(10) until get_exp_count()==b
release("shoot_full")
release("shoot_half")
set_display_key(1)
set_raw_nr(0) -- enable Canon's dark frame reduction