Skip to content

Instantly share code, notes, and snippets.

pigeonhill

Block or report user

Report or block pigeonhill

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@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 Aug 15, 2019
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 ZN4 ZN3 ZN2 ZN2+2 ISO1600}
#infinity = 3 "Infinity focus" [2 4]
#overlap = 15 "Overlap (um)" [5 30]
#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.
@pigeonhill
pigeonhill / SGFB.lua
Last active May 3, 2019
Simple Get Focus Brackets (Version 2)
View SGFB.lua
--[[
Get Focus Brackets
This is a Lua 'simple script' to capture 'perfect' focus brackets from the current focus position to a defocus blur defined infinity, as defined by the ML CoC.
I wrote it to cover Multi-Image, Deep Field photography needs.
This version assumes a thin lens model.
There is no menu: just run the script from the ML Scripts menu.
The UI is simple, but functional: just follow the on screen instructions. The script pauses to allow you to decide if you wish to complete, ie in case
there are too many brackets. During the pause you can refocus, change aperture and focal length, ie to change the number of brackets.
During the pause the SET key can be used, ie for ETTRing. A long half shutter will take the brackets, any other key, other than SET, will terminate the script.
A short half shutter press will terminate the script and leave the focus and exposure as is.
@pigeonhill
pigeonhill / 1GFB.lua
Created Apr 28, 2019
SGFB Helper Script
View 1GFB.lua
--[[
SGFB Helper
[RATE] = A hijacked button to access the ML Script Menu
Version 0.5
Garry George May 2019
http://photography.grayheron.net/
--]]
CON = {"ON","OFF"}
@pigeonhill
pigeonhill / SGFB.lua
Last active Apr 24, 2019
Simple Get Focus Brackets (ML)
View SGFB.lua
--[[
Get Focus Brackets
This is a Lua 'simple script' to capture 'perfect' focus brackets from the current focus position to a defocus blur defined infinity, as defined by the ML CoC.
I wrote it to cover Multi-Image, Deep Field photography needs.
There is no menu: just run the script from the ML Scripts menu.
The UI is simple, but functional: just follow the on screen instructions. The script pauses to allow you to decide if you wish to complete, ie in case
there are too many brackets. During the pause you can refocus, change aperture and focal length, ie to change the number of brackets.
Also, during the pause the SET key can be used, ie for ETTRing. A half shutter will take the brackets, any other key, other than SET, will terminate the script.
The number of estimated brackets is the minimum you will get. The actual number may slightly be larger. That is the estimate assumes perfectly touching brackets, something that the Canon
lens conrol can't achieve. The scripts trys to account for differences between
@pigeonhill
pigeonhill / Get Focus Bracket.lua
Last active May 31, 2019
Get Focus Bracket (ML)
View Get Focus Bracket.lua
--[[
Get Focus Brackets
This is a Lua 'simple script' to capture 'perfect' focus brackets from the current focus position to a defocus blur defined infinity.
I wrote it to cover auto capture, Multi-Image, Deep Field photography needs.
This version includes a modified split thin lens model, which better matches the real world.
There is no menu: just run the script from the ML Scripts menu.
The UI is simple, but functional: just follow the on screen instructions. The script pauses to allow you to decide if you wish to complete, ie in case
there are too many brackets. During the pause you can refocus, change aperture and focal length, ie to change the number of brackets.
During the pause the SET key can be used, ie for ETTRing. A long half shutter will take the brackets, any other key, including a half shutter press, but other than SET, will terminate the script.
@pigeonhill
pigeonhill / Get Brackets.lua
Last active Sep 19, 2019
Get Brackets (CHDK)
View Get Brackets.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 / CyclerB.lua
Last active May 12, 2019
Button version of Cycler
View CyclerB.lua
--[[
Cycler B(utton version)
[PLAY] = A hijacked button that (repeatedly pressing) allows you to cycle through various options that this button can do: change ML state to the next one, use [PlAY] normally, shoot a bookmark image
Straight after [PLAY]
[Half_Shutter_Press] = reverse state change cycle direction (black = to the right, red = anitclocto the left)
[MENU] = select/run option
[anykey] other than [PLAY] or [MENU] when cycling = normal action plus resets cycle and show the ML state you are in
Options and ML states are shown in RHS of the ML top bar
@pigeonhill
pigeonhill / Cycler.lua
Last active Mar 24, 2019
Simple ML script to cycle through different ML menu states
View Cycler.lua
--[[
Cycler
[PLAY]+[Anykey, eg half shutter press] = null/reset [PLAY]
[PLAY]+{various button_delays}+[PLAY] = additional functionality as displayed in top bar
Note: functionally is temporally enhanced after pressing [PLAY], by waiting to see additional options appear then pressing [PLAY] to select
Version 0.42
Garry George March 2019
You can’t perform that action at this time.