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 Menufunction check_stuff()
if menu.get("Focus","DOF Info") == "ON" then show = true else show = false end
if (lv.overlays == 2 and (not menu.visible)) and show then update() end
return true
end
DOFI_Menu = menu.new
{
parent = "Focus",
name = "DOF Info",
help = "Helps with infinity focusing & focus bracketing",
depends_on = DEPENDS_ON.LIVEVIEW,
choices = {CON,COFF},
}
lv.info
{
name = "DOFI",
value = "",
priority = 100,
update = function(this)
if (not show) then
this.value = ""
else
this.background = COLOR.WHITE
this.foreground = COLOR.BLACK
if image_taken then
if (x == last_x) then
this.background = COLOR.YELLOW
this.foreground = COLOR.BLACK
elseif (ndof > last_fdof) or (fdof < last_ndof) then
this.background = COLOR.RED
this.foreground = COLOR.WHITE
elseif (ndof < last_ndof) and (fdof > last_ndof) then
this.background = COLOR.GREEN1
this.foreground = COLOR.BLACK
elseif (ndof > last_ndof) and (ndof <= last_fdof) then
this.background = COLOR.GREEN1
this.foreground = COLOR.BLACK
end
if x > infinity then
this.value = "INF"
this.background = COLOR.BLACK
this.foreground = COLOR.WHITE
else
this.value = blurs
end
else
this.value = blurs
end
end
end
}
event.shoot_task = check_stuff
--[[
TEST KEYS
]]
function shutter()
local r = menu.get("Expo","Shutter","")
local e = r:find(',')
if e ~= nil then
r = r:sub(1,(e-1))
end
if r:find('"') ~= nil then
r = tonumber((r:gsub('"','')))
else
r = 1/(tonumber((r:sub(2))))
end
return r
end
local go = true
while go do
msleep(1000)
local r = menu.get("FPS override","Desired FPS","")
local e = r:find("%(")
r = r:sub(e) -- strip out the FPS part
r = "0.23 "..r -- insert a new FPS
menu.set("FPS override","Desired FPS",r)
if key.last == KEY.UNPRESS_HALFSHUTTER then go = false end
end
QuoteASSERT: FALSE
at RscMgr.c:904, MovieRecorder:ff0ef42c
lv:1 mode:3
MovieRecorder stack: 1716f0 [171850-16f850]
0xUNKNOWN @ de48:171848
0xUNKNOWN @ 17bbc:171820
0x000178B4 @ ff0ebdf8:171808
0xUNKNOWN @ 178e4:1717f8
0xUNKNOWN @ 1796c:1717d8
0xFF1F06E4 @ ff1dafe0:171770
0xFF13C2D4 @ ff1f0730:171760
0x00001900 @ ff0ef428:171728
0x00069878 @ 69c1c:1716f0
Magic Lantern version : crop_rec_4k.2018Jul22.5D3123
Mercurial changeset : c1e44b8e0183 (crop_rec_4k_mlv_snd) tip
Built on 2018-07-22 13:10:52 UTC by jenkins@nightly.
Free Memory : 215K + 2491K
for j = 1, clips do
msleep(1000)
movie.start()
for i = 0, 5, 1 do task.yield(1000) end
movie.stop()
task.yield(1000)
end
key.wait([key.1], [key.2], .... [key.n])
while bracketing_test do
display.notify_box("bracketing running")
task.yield(1000)
end
display.notify_box("bracketing finished")
function set_focus(x)
lv.resume()
local current_x = lens.focus_distance
if x == current_x then return x end
if x > current_x then
while lens.focus_distance < x do lens.focus(1,2,true) end
while lens.focus_distance > x do lens.focus(-1,2,true) end
else
while lens.focus_distance > x do lens.focus(-1,2,true) end
while lens.focus_distance < x do lens.focus(1,2,true) end
end
return lens.focus.focus_distance -- final focus distance, ie may not be extactly x ;-)
end
--[[
Cycler
Version 0.1
Garry George April 2019
http://photography.grayheron.net/
--]]
config = 1
max_config = 5
-- Change the Cycler button to your choice, for example
-- B1 = PLAY and B2 = INFO on an 5D3, and B1 = INFO and B2 = PLAY on a EOSM
button_1 = KEY.INFO -- imode switch and set
button_2 = KEY.PLAY -- used to go forwards in imode
button_3 = KEY.MENU -- used to go backwards in imode
cycled = true
timer = dryos.ms_clock
timer_running = false
menu.set("Expo","Auto ETTR",0)
menu.set("Shoot","Advanced Bracket",0)
menu.set("Overlay","Waveform",0)
menu.set("Overlay","Magic Zoom",0)
function reset(k)
if cycled then
if config == 1 then
-- normal play function, so reset everything
menu.set("Expo","Auto ETTR",0)
menu.set("Shoot","Advanced Bracket",0)
menu.set("Overlay","Waveform",0)
menu.set("Overlay","Magic Zoom",0)
elseif config == 2 then -- switch on ETTR
menu.set("Expo","Auto ETTR",1)
elseif config == 3 then -- switch on bracketing
menu.set("Expo","Auto ETTR",0)
menu.set("Shoot","Advanced Bracket",1)
elseif config == 4 then -- switch on Magic Zoom
menu.set("Shoot","Advanced Bracket",0)
menu.set("Overlay","Magic Zoom",1)
elseif config == 5 then -- switch on Waveform
menu.set("Shoot","Advanced Bracket",0)
menu.set("Overlay","Waveform",1)
end
cycled = false
else
-- do nothing
end
end
function test4reset(k)
if k == button_2 then
if timer_running then
if dryos.ms_clock - timer < 500 then -- normal button action
timer_running = false
cycled = true
return true
else
config = config + 1
if config > max_config then config = 1 end
cycled = true
timer_running = false
return false
end
else
timer = dryos.ms_clock
timer_running = true
cycled = false
return false
end
end
cycled = false
return true
end
event.shoot_task = reset
event.keypress = test4reset
lv.info
{
name = "Cycler State",
value = "",
priority = 100,
update = function(this)
this.background = COLOR.WHITE
this.foreground = COLOR.BLACK
if config == 1 then
this.value = "PLAY"
elseif config == 2 then
this.value = "ETTR"
elseif config == 3 then
this.value = "Auto"
elseif config == 4 then
this.value = "Zoom"
elseif config == 5 then
this.value = "Wave"
end
end
}
Page created in 0.155 seconds with 14 queries.