Skip to content

Instantly share code, notes, and snippets.

@pigeonhill
pigeonhill / DOFIS.lua
Last active June 13, 2023 19:26
Depth Of Field Info (Split lens version)
View DOFIS.lua
--[[
DOFIS
Depth of Field Info Script
NOTE: This script assumes you are running the Lua fix from the experimental area or have the Lua fix module in your build, ie Latest Lua fix Build (2020-12-28)
In LV this script dynamically displays (in the ML top bar) the enhanced focus information: in non-LV mode, the Canon 'Shooting Settings' screen provides focus bracketing feedback.
In LV, if the display option is set to DoFs, then if you are focused less than H, DOFI will show the relative (R), either side of the point of focus,
or absolute (A) DoFs, relative to the sensor, plus show the blurs when focus is greater than H.
@pigeonhill
pigeonhill / LBS.lua
Last active June 12, 2023 16:15
LBS (CHDK)
View LBS.lua
--[[
Landscape Bracketing Script (LBS)
Capture 'perfect' focus brackets, with focus overlap defined in terms of defocus (CHDK) Circle of Confusion blur
Focus bracketing strategies are: current position to blur-defined infinity (X2INF); min camera focus to blur-defined infinity (Min2INF); H/x to infinity (H/x2INF);...
and Min focus to current focus position (Min2X).
Overlap, ie bracket to bracket, is definded in terms of the defocus (CoC) blur, eg CoC/2 means focus brackets 'touch' at a CHDK defocus blur of CoC/2.
View QDFS.lua
--[[
@title QDFS
@chdk_version 1.7
#coc = 15 "CoC (um)" [5 30]
#brak = 0 "X bracket mode?" {ISO Tv HandH Auto->H Wind}
#b_val = 0 "X Bracketing Value" {Canon 1Ev 2Ev 3Ev 4Ev 5Ev}
#sleep_time = 0 "Delay (s)" [0 10]
#dis = 1 "Display" {#Bracks Focus}
#lensmag = 0 "Get Mag" {Off On Dynamic}
@pigeonhill
pigeonhill / M3 Brackets.lua
Last active April 7, 2023 17:30
M3 Focus & Exposure Bracketing
View M3 Brackets.lua
--[[
@title LBS-M
@chdk_version 1.7
@subtitle Bracketing Options
#mode = 0 "Focus?" {Off X2INF Min2INF Manual Min2X SupRes}
#bracket = 0 "Exposure?" {Off 1(4Ev) 1(3Ev) 1(2Ev) 2(2Ev) 3(2Ev) ISO AutoX>H Wind3Ev Wind4Ev HandH AutoS>H}
#sky = 0 "Sky?" {Off 2Ev 3Ev 4Ev 5Ev 6Ev ETTR}
#ndf = 0 "ND?" [-5 30]
@pigeonhill
pigeonhill / CPAN.lua
Last active March 23, 2023 20:52
Cropped XPAN Simulator
View CPAN.lua
--[[
@title CPAN
@chdk_version 1.7
#sleep_time = 0 "Delay (s)" [0 10]
#title = 1 "Title Line" {Off Full Exit}
Notes:
* This script (Cropped XPAN) simulates the look of a Hasselblad XPan (65mmx24mm) on the G7X or G5X with CHDK 1.7 or later
* You may need to tweak the function check_buttons_etc() for other CHDK cameras, ie if the buttons are different, and change line 42 test
View FBTL.lua
--[[
@title FBTL
@chdk_version 1.6
#overlap = 15 "Overlap Blur (um)" [5 30]
#help = 0 "Console" {Off On}
Notes:
* This test script only runs on the M3, M10 or M100 with the XIMR version of CHDK. But note, not tested on the M100.
* Go to https://drive.google.com/drive/folders/1drk1xi6kMMIeF5xSqXgnpjGCffF8CVkd?usp=sharing for XIMR builds
@pigeonhill
pigeonhill / TLFF.lua
Last active July 15, 2022 15:36
Thin Lens Functionalised Focus
View TLFF.lua
--[[
@title TLFF
@chdk_version 1.6
#log = 0 "Log?" {Off On}
Notes:
* This test script only runs on the M3, M10 or M100 with the XIMR version of CHDK. But note, not tested on the M100.
* Go to https://drive.google.com/drive/folders/1drk1xi6kMMIeF5xSqXgnpjGCffF8CVkd?usp=sharing for XIMR builds
*
View LBS-M(Rev2)
--[[
@title LBS-M(Rev2)
@chdk_version 1.6
@subtitle Bracketing Options
#mode = 0 "Focus?" {Off X2INF Min2INF Manual Min2X SupRes}
#bracket = 0 "Exposure?" {Off 1(4Ev) 1(3Ev) 1(2Ev) 2(2Ev) 3(2Ev) ISO AutoX>H Wind3Ev Wind4Ev HandH AutoS>H}
#sky = 0 "Sky?" {Off 2Ev 3Ev 4Ev 5Ev 6Ev ETTR}
#ndf = 0 "ND?" [-5 30]
@pigeonhill
pigeonhill / Brackets (M3).lua
Last active May 1, 2021 11:31
fmath version of M3 Bracketing
View Brackets (M3).lua
--[[
@title Brackets (M3)
@chdk_version 1.5
@subtitle Bracketing Options
#mode = 0 "Focus bracket?" {Off X2INF Min2INF}
#bracket = 0 "Exposure bracket?" {Off +4Ev +3Ev +2Ev 2(+2Ev) 3(+2Ev) ISO1600 auto}
#sky = 0 "Sky Bracket?" {Off Sky+2Ev Sky+3Ev Sky+4Ev Sky+5Ev Sky+6Ev}
@subtitle Bracketing Settings
@pigeonhill
pigeonhill / MUSIC.lua
Last active February 7, 2021 14:46
MUlti Shot Image Capture script
View MUSIC.lua
--[[
MUSIC
(MUlti Shot Image Capture)
MUSIC helps you quickly create bracket sets for various use cases, eg: noise reduction (NR); super resolution (SR);
people removal; ND simulation; Hand-held (HH) bracketing; FRSP and Zero Noise bracketing.
MUSIC works by taking the requested number of images according to the needs of the use case. Simply toggle through the various use cases until you find the one that fits your needs.
SR and HH use cases assume you are handholding to create the bracket set. Most other use cases will normally be triggered from a tripod (but it's your choice).