From 1ba488d0735a778ec2f0f5c11ee79fc403001dfe Mon Sep 17 00:00:00 2001 From: Martin Straeten <39386816+MStraeten@users.noreply.github.com> Date: Sun, 15 Dec 2024 19:08:24 +0100 Subject: [PATCH] Enhanced x-touch.lua for colorequalizer just adapted the colorzone stuff for color equalizer. requires explicitly set the focus via a further switch --- examples/x-touch.lua | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/examples/x-touch.lua b/examples/x-touch.lua index bbe9bbd..314135e 100644 --- a/examples/x-touch.lua +++ b/examples/x-touch.lua @@ -48,6 +48,7 @@ midi:A-1=iop/colorzones;focus midi:A#-1=iop/toneequal;focus midi:B-1=iop/colorbalancergb;focus midi:C0=iop/channelmixerrgb;focus +midi:C#0=iop/colorequal;focus ]] local dt = require "darktable" @@ -119,6 +120,18 @@ for k = 1,8 do "magenta" } element = e[k] + -- try if colorequalizer module is focused; if so select element of graph + elseif dt.gui.action("iop/colorequal", "focus") ~= 0 then + local e = { "red", + "orange", + "yellow", + "green", + "cyan", + "blue", + "lavender", + "magenta" } + which = "iop/colorequal/graph" + element = e[k] -- if the sigmoid rgb primaries is focused, -- check sliders