darktable-org / darktable-org/lua-scripts
Lua script request for batch auto-tune applied for filmic rgb and/or sigmoid modules
Personne n'a encore pris cette issue.
- Langage dominant
- Lua
- Étoiles
- 219
- Forks
- 142
- Métriques de merge des PR
- Aucune PR mergée en 30 j
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.
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Piste de recherche
Commencez par les événements darkroom-image-loaded et pixelpipe-processing-complete ainsi que par l’API dt.gui.action() mentionnés dans la demande. Consultez les scripts Lua existants pour y trouver des gestionnaires d’événements, des actions d’auto-picker et des modèles de préférences ou de raccourcis. Le travail sera considéré comme terminé lorsqu’un script d’exemple couvrira filmic rgb, la prise en charge facultative de sigmoid, l’ordre de pixelpipe et un moyen d’activer ou de désactiver le comportement.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- lua
- Domaine
- tooling
- Type d'issue
- Fonctionnalité
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Activité
- Calme
- Clarté
- Plutôt claire
- Accessibilité débutants
- 35/100