I prefer using the exposure module to the display referred vignetting module to add vignetting to my photos. Creating a new instance and activating masking is way too much hassle for me though because I am a short cut type of a man.
Now I can strg+e and wham can place my vignetting-mask.
lua script:
local dt = require "darktable"
local function exposure_vignette(event, shortcut)
-- Go to Active modules page
dt.gui.action("lib/modulegroups/active modules", "", "on", 1.000)
-- Create new instance, add preset and activate ellipse mask
dt.gui.action("iop/exposure", "instance", "new", 1.000, 1)
dt.gui.action("iop/exposure/preset/vignette", 1.000, 2)
dt.gui.action("iop/blend/shapes/add ellipse", "", "toggle", 1.000)
end
dt.register_event("exposure_vignette",
"shortcut",
exposure_vignette,
"Create new exposure instance, apply vignette preset and select ellipse mask")
requires a corresponding preset named “vignette” for the exposure module to be present. Like this:
exposure_vignette.dtpreset (1.1 KB)
Maybe one of you will find it useful.
For installation, if you need help with that, see here.