Skip to content

Instantly share code, notes, and snippets.

@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 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}
--[[
@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
@pigeonhill
pigeonhill / MUSIC.lua
Last active February 7, 2021 14:46
MUlti Shot Image Capture script
--[[
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).
@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 / 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 / gfbs2.lua
Last active January 13, 2020 22:15
CHDK Get Focus Script Rev 2
--[[
@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