From 5f29211f79e924b1528c3ef83a3cac32c071e9a7 Mon Sep 17 00:00:00 2001 From: Martin Straeten <39386816+MStraeten@users.noreply.github.com> Date: Thu, 11 Jan 2024 20:42:32 +0100 Subject: [PATCH] Update x-touch.lua with support for primaries slider maps knobs to the primaries sliders requires darktable 4.6.x --- examples/x-touch.lua | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/examples/x-touch.lua b/examples/x-touch.lua index 7c5b998..d0f7cd8 100644 --- a/examples/x-touch.lua +++ b/examples/x-touch.lua @@ -96,7 +96,20 @@ for k = 1,8 do "purple", "magenta" } element = e[k] + + + -- if the sigmoid rgb primaries is focused, + -- check sliders + elseif dt.gui.action("iop/sigmoid", "focus") ~= 0 and k <8 then + local e = { "red attenuation", "red rotation", "green attenuation", "green rotation", "blue attenuation", "blue rotation", "recover purity" } + which = "iop/sigmoid/primaries/"..e[k] + -- if the rgb primaries is focused, + -- check sliders + elseif dt.gui.action("iop/primaries", "focus") ~= 0 and k >=1 then + local e = { "red hue", "red purity", "green hue", "green purity", "blue hue", "blue purity", "tint hue", "tint purity" } + which = "iop/primaries/" ..e[k] + -- if the tone equalizer is focused, -- select one of the sliders in the "simple" tab elseif dt.gui.action("iop/toneequal", "focus") ~= 0 then