Ok, thank you for your reply. Should be quite simple, maybe I can try to copy some stuffs from that script.
Etiquette, expectations, entitlement...
@autoexec_bin | #magiclantern | Discord | Reddit | Server issues
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menu
lexi = menu.new
{
parent = "Shoot",
name = "LExI",
help = "Long Exposure Intervalometer (w/reps)",
submenu =
{
{
name = "Enable",
help = "Enable LEXI",
choices = {"Off","On"}
},
{
name = "Initial delay",
help = "Initial delay after shutter start.",
min = 5,
max = 20,
value = 10,
unit = UNIT.TIME
},
{
name = "Exposure length",
help = "Length of the exposure.",
min = 0,
max = 900,
value = 20,
unit = UNIT.TIME
},
{
name = "Delay",
help = "Delay between shoots.",
min = 5,
max = 30,
value = 8,
unit = UNIT.TIME
},
{
name = "Repetitions",
help = "Number of repetitions.",
min = 1,
max = 999,
value = 1,
unit = UNIT.INT
},
}
}
-- return false if something wrong, else true
function checks()
-- check bulb
if camera.mode ~= MODE.BULB then
display.notify_box("LEXI chk - Not in Bulb!")
return false
end
-- check af
if camera.af == true then
display.notify_box("LEXI chk - Disable AF and stab!")
return false
end
return true
end
function repeated_shots(init_delay, exp_length, dly, reps)
display.notify_box("Starting LEXI...")
sleep(init_delay)
-- repeated shots
local n = 1
for i = reps, 1, -1 do
display.notify_box(string.format("Running cycle %s", n))
camera.bulb(exp_length)
if n == reps then
break
else
sleep(dly)
n = n + 1
end
end
end
-- trigger
function event.keypress(key)
-- check halfshutter and enable
if key == KEY.HALFSHUTTER and lexi.submenu["Enable"].value == "On" then
-- check bulb mode
if checks() == true then
-- set variables
local init_delay = lexi.submenu["Initial delay"].value
local exp_length = lexi.submenu["Exposure length"].value
local dly = lexi.submenu["Delay"].value
local reps = lexi.submenu["Repetitions"].value
--
repeated_shots(init_delay,exp_length,dly,reps)
-- ERROR: BLOCK NEW CYCLE
lexi.submenu["Enable"].value = "Off"
end
end
end
Page created in 0.078 seconds with 13 queries.