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 1/2] 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 From f54d4493168bf6937ab16e4f9d488016ad1a42be Mon Sep 17 00:00:00 2001 From: Martin Straeten <39386816+MStraeten@users.noreply.github.com> Date: Mon, 15 Jan 2024 07:01:43 +0100 Subject: [PATCH 2/2] increase required api version MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit … to match darktable 4.6.x --- examples/x-touch.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/x-touch.lua b/examples/x-touch.lua index d0f7cd8..73ed112 100644 --- a/examples/x-touch.lua +++ b/examples/x-touch.lua @@ -53,7 +53,7 @@ midi:C0=iop/channelmixerrgb;focus local dt = require "darktable" local du = require "lib/dtutils" -du.check_min_api_version("9.1.0", "x-touch") +du.check_min_api_version("9.2.0", "x-touch") -- set up 8 mimic sliders with the same function for k = 1,8 do