Skip to content

Instantly share code, notes, and snippets.

@pigeonhill
pigeonhill / DOFIC.lua
Last active Jan 27, 2020
Depth Of Field Info script Chdk version
View DOFIC.lua
--[[
@DOFIC
Rev 0.835
Garry George
@chdk_version 1.5
# show_DOFIC = 1 "Display DOFIC?" {No Yes}
# show_coc = 0 "Show Inf focus blurs?" {No Yes}
# time_2_show = 5 "Display timeout (s)" [3 30]
# pos = 1 "Vertical position" [0 14]
--]]
@pigeonhill
pigeonhill / gfbs2.lua
Last active Jan 13, 2020
CHDK Get Focus Script Rev 2
View gfbs2.lua
--[[
@title Get Brackets
Capture 'Perfect' focus brackets, with focus overlap defined in terms of defocus (CHDK Circle of Confusion (CoC)) blur
Plus option of additional exposure brackets at each focus step, using various logic: 1Ev, 2Ev or 3Ev using -/+ or -/-- or +/++; one iso-invariant at
ISO at 800 or 1600; or one (Zero Noise) exposure at 4Ev, 3Ev or 2Ev
Focus bracketing strategies are: current position to blur-defined infinity (X2Inf); min camera focus to current position (Min2X), min camera focus to blur-defined infinity (Min2Inf);
current position to a delta x ahead of the current position (X2DelX); from a delta x in front of the current position to the current position (-DelX2X);
from a delta x in front of the current position to a delta x ahead of the current position (-D2+D).
None means that requested exposures will only be captured at the current focus point
Overlap, ie bracket to bracket focus insurance, is definded in terms of the defocus (CoC) blur, eg CoC/2 means focus brackets 'touch' at a b
@pigeonhill
pigeonhill / DOFI.lua
Last active Mar 8, 2020
Depth of Field Info
View DOFI.lua
--[[
DOFI
Depth of Feild Info script
This script dynamically displays (in the ML top bar) the current infinity defocus blur, diffraction blur and the total blur at infinity.
The script visually shows the overlap status to aid focus bracketing: green means a positive overlap and red a focus gap between the current focus and the last image taken.
Yellow means the current focus is the same as the last image captured.
Changing aperature or focal length will reset DOFI.
Also exposing the ML menu will reset DOFI.
Augmented reality option shows the hyperfocal position as well as the focus. Set tripod height.
@pigeonhill
pigeonhill / gtlapse.lua
Last active Jan 4, 2020
Garry's Version of Danne's Script
View gtlapse.lua
-- movie tlapse
--[[
Movie intervalometer
Garry's version of Danne's script ;-)
Rev 0.32
--]]
console.hide()
menu.close()
View LESMD.lua
--[[
LE Sim (D)
BACKGROUND INFO:
Remember the shutter speed you set to assit in checking ML fps-shutter settings under RAW video ;-)
Start in LV mode or not
Set duration of LE simulation in ML Bulb timer (note switched off)
Number of frames is calculated from the ML set shutter and the Bulb time
Start in photo mode, ie not video mode
Follow script's prompts as it leads you through the workflow
Script will provide the option of taking an(y number of) advanced bracket set(s) after the MLV is captured (ensure Advanced Bracketing is setup to your needs, but set OFF)
@pigeonhill
pigeonhill / LESM.lua
Last active Dec 18, 2019
LE Simulator
View LESM.lua
--[[
LE Sim
SET UP:
Set Canon movie mode to 1920; Set ML FPS overrride to 1 (adjust later); Remember the shutter speed you set
Start in LV mode or not
Set duration of LE simulation in ML Bulb timer (note switched off)
Start in photo mode, ie not video mode
Follow script's LV prompts
Script will provide the option of taking an advanced bracket set after the MLV is captured (ensure Advanced Bracketing is setup to your needs, but set OFF)
See additional notes below in the body of the script and at photography.grayheron.net
@pigeonhill
pigeonhill / TILT.LUA
Last active May 10, 2020
Tilter Scripr
View TILT.LUA
--[[
Tilter
Release 0.86
May 2020
Copyleft: Garry George 2020
photography.grayheron.net
--]]
require("config")
@pigeonhill
pigeonhill / HHBS.lua
Last active Oct 8, 2019
Hand Held Bracketing Script
View HHBS.lua
--[[
HHBS
Hand Held Bracketing Script for WA lenses
Version 1.365
Garry George Oct 2019
http://photography.grayheron.net/
--]]
CON = "ON"
@pigeonhill
pigeonhill / M3 Brackets.lua
Last active Jul 7, 2020
M3 Focus & Exposure Bracketing
View M3 Brackets.lua
--[[
@title M3 Bracketing: Focus & Exposure
@chdk_version 1.4
#mode = 0 "Mode" {Off X2INF Min2INF}
#bracket = 0 "Exposure bracket?" {None +4 +3 +2 +2+4 ISO1600}
#infinity = 3 "Infinity focus" [2 4]
#overlap = 15 "Overlap (um)" [5 20]
#sleep_time = 2 "Delay (s)"
#bookends = 1 "Bookends?" {No Yes}
#screen_off = 0 "Screen off?" {No Yes}
View BRAK.lua
--[[
Bracketeer
This script dynamically displays the current infinity defocus blur, diffraction blur and the total blur at infinity, which is useful when focusing beyond the hyperfocal.
It also visually shows the overlap status to aid focus bracketing: green means a positive overlap and red a focus gap.
In addition a traffic light feedback gives you infinity focus info.
The width of the DoF visualisation is the smallest near DoFs (current position and last image taken) and the hyperfocal distance, which is useful when bracketing less than the hyperfocal.
If both current and last far DoFs are less than the hyperfocal, then the right hand edge of the bar will be the longest far DoF.
The ML CoC (total blur) is used as the overlap criterion: on a full frame it is recommended this be 20 microns.
A thin lens model is assumed, with the lens principal plane positioned at f(1+m) from the sensor, ie magnification is estimated from the TL model: so don't use the script for macro.
You can’t perform that action at this time.