darktable-org / darktable-org/lua-scripts

Lua script request for batch auto-tune applied for filmic rgb and/or sigmoid modules

Aperta
#682 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Lingua principale
Lua
Stelle
219
Fork
142
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Inizia dagli eventi darkroom-image-loaded e pixelpipe-processing-complete e dall’API dt.gui.action() indicati nella richiesta. Controlla gli script Lua esistenti per individuare gestori di eventi, azioni di auto-picker e pattern per le preferenze o le scorciatoie. Il lavoro sarà considerato completato quando sarà disponibile uno script di esempio che copra filmic rgb, il supporto opzionale per sigmoid, l’ordine di pixelpipe e un modo per abilitare o disabilitare il comportamento.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
lua
Ambito
tooling
Tipo di issue
Funzionalità
Difficoltà
5/5
Tempo stimato
Più di una settimana
Stato di attività
Tranquilla
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.