Lua script request for batch auto-tune applied for filmic rgb and/or sigmoid modules
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
Research direction
Start with the darkroom-image-loaded and pixelpipe-processing-complete events and the dt.gui.action() API named in the request. Check existing Lua scripts for event handlers, auto-picker actions, and preference or shortcut patterns. Done would be an example script covering filmic rgb, optional sigmoid support, pixelpipe ordering, and a way to enable or disable the behavior.
Written by the indexing model from the issue text.
Description
Use Case
When processing large event or travel photo sets (hundreds to thousands of images), one of the most repetitive tasks is manually clicking the auto-tune picker for modules such as filmic rgb and/or sigmoid on every image.
While the operation itself is quick, repeating it across a large collection becomes time-consuming when speed is the primary goal.
Background
I asked about this on IRC and received the following guidance from wpferguson:
Yes it would be possible to "auto-tune" with a Lua script. You could catch the darkroom-image-loaded event to trigger then use dt.gui.action() to enable the auto-picker, then catch pixelpipe-processing-complete, then disable the picker with dt.gui.action(). If more than 1 picker is going to be used then they should be done in pixelpipe order since the output of the lower (in the pixelpipe) pickers will affect the higher modules.
Request
Would anyone be willing to provide an example Lua script (or code snippets) that would:
- Automatically trigger the filmic rgb auto-tune picker when an image is opened in darkroom.
- Optionally support sigmoid auto-tuning as well.
- Respect pixelpipe ordering if multiple auto-pickers are enabled.
- Ideally allow enabling/disabling the behavior via a simple preference or shortcut.
An even more useful variant would be a script that can batch-apply the auto-tune operation across a selected set of images, though I'm not sure whether that is feasible with the current API.
This is my first encounter with Lua scripting. Any guidance or starter code would be greatly appreciated.
- Dominant language
- Lua
- Stars
- 219
- Forks
- 142
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from darktable-org/lua-scripts
-
dtutils.string: build_substitute_list errors when a metadata field (e.g. rights) has been removed Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
darktable-org/lua-scripts#716 · 2 comments ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 63/100
darktable-org/lua-scripts#706 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
darktable-org/lua-scripts#627 · 2 comments ·
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 65/100
darktable-org/lua-scripts#618 · 3 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 52/100
darktable-org/lua-scripts#710 · 3 comments ·
All issues in darktable-org/lua-scripts
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
api7/lua-resty-saml#62 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
nvim-tree/nvim-tree.lua#3357 · 1 comment ·
-
Difficulty 1/5 Under an hour Newbie friendliness 94/100
codymikol/multiverse.nvim#320 ·
-
Data Correction tbc
Difficulty 2/5 1-3 hours Newbie friendliness 68/100