I think you will see it comes from added exposure and the clarity preset… I found a small typo in the code…after that things seem to work properly for me…
EDIT @Ulrich_Gesing
This is the bit…note the labels for the options… the values for setting the module option were also set like this for the function… I have changed the comma out for a period and it seems to work… that typo seems to have caused the weird errors I saw in 4.21. I didn’t have the lua logging on to confirm but that could confirm…
function StepContrastEqualizer:Init()
self.ComboBoxValues =
{
“unchanged”,
“reset to default”,
“clarity, strength 0,25”,
“clarity, strength 0,50”,
“denoise & sharpen, strength 0,25”,
“denoise & sharpen, strength 0,50”
}
self.Widget = dt.new_widget(“combobox”)
{
changed_callback = ComboBoxChangedCallback,
label = “contrast equalizer”,
tooltip = self.Tooltip,
table.unpack(self.ComboBoxValues)
}
end
function StepContrastEqualizer:Run()
local selection = self.Widget.value
if (selection == “unchanged”) then
return
end
self:LogStepMessage()
self:EnableDarkroomModule(“iop/atrous”)
GuiActionWaitForPixelPipe(“iop/atrous”, 0, “reset”, “”, 1.0)
if (selection == “clarity, strength 0,25”) then
GuiActionWaitForPixelPipe(“iop/atrous/preset/clarity”, 0, “button”, “on”, 1.0)
GuiActionWaitForPixelPipe(“iop/atrous/mix”, 0, “value”, “set”, “0.25”)
end
if (selection == “clarity, strength 0,50”) then
GuiActionWaitForPixelPipe(“iop/atrous/preset/clarity”, 0, “button”, “on”, 1.0)
GuiActionWaitForPixelPipe(“iop/atrous/mix”, 0, “value”, “set”, “0.5”)
end
if (selection == “denoise & sharpen, strength 0,25”) then
GuiActionWaitForPixelPipe(“iop/atrous/preset/denoise & sharpen”, 0, “button”, “on”, 1.0)
GuiActionWaitForPixelPipe(“iop/atrous/mix”, 0, “value”, “set”, “0.25”)
end
if (selection == “denoise & sharpen, strength 0,50”) then
GuiActionWaitForPixelPipe(“iop/atrous/preset/denoise & sharpen”, 0, “button”, “on”, 1.0)
GuiActionWaitForPixelPipe(“iop/atrous/mix”, 0, “value”, “set”, “0.5”)
end
end