darktable-org / darktable-org/lua-scripts

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

Abierto
#682 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Lenguaje dominante
Lua
Estrellas
219
Forks
142
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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.

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Línea de trabajo

Comienza con los eventos darkroom-image-loaded y pixelpipe-processing-complete y la API dt.gui.action() mencionados en la solicitud. Revisa los scripts de Lua existentes para encontrar manejadores de eventos, acciones de auto-picker y patrones de preferencias o atajos. Se considerará terminado cuando haya un script de ejemplo que cubra filmic rgb, la compatibilidad opcional con sigmoid, el orden de pixelpipe y una forma de habilitar o deshabilitar el comportamiento.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
lua
Área
tooling
Tipo de issue
Nueva funcionalidad
Dificultad
5/5
Tiempo estimado
Más de una semana
Estado de actividad
Tranquilo
Claridad
Bastante claro
Aptitud para principiantes
35/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.