Skip to content

Instantly share code, notes, and snippets.

@pigeonhill
pigeonhill / DOFIC.lua
Last active June 4, 2024 01:49
Depth Of Field Info script Chdk version
--[[
@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 / DOFIS.lua
Last active June 13, 2023 19:26
Depth Of Field Info (Split lens version)
--[[
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)
--[[
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.
--[[
@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
--[[
@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
--[[
@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
--[[
@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
--[[
@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
*
--[[
@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
--[[
@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