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

未关闭
#682 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
35/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
冷清
技术栈
lua
领域
tooling

调研方向

从请求中提到的 darkroom-image-loaded 和 pixelpipe-processing-complete 事件以及 dt.gui.action() API 开始。检查现有的 Lua 脚本,了解事件处理程序、auto-picker 操作以及首选项或快捷键模式。完成标准是提供一个示例脚本,涵盖 filmic rgb、可选的 sigmoid 支持、pixelpipe 顺序,以及启用或禁用该行为的方法。

由索引模型根据 Issue 内容生成。

描述

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.

主要语言
Lua
星标
219
派生
142
PR 合并指标
30 天内没有已合并 PR

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

darktable-org/lua-scripts 的其他 Issue

查看 darktable-org/lua-scripts 的全部 Issue

相似的 Issue

更多 Lua Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。