13
0
livetrax/share/scripts/bypass_all_plugins.lua
Robin Gareus bf3a36a126
Fix script to bypass all plugins
deactivate() hard bypassed all plugins, this made plugins with
a dedicated en/disable soft-bypass option inaccessible.
2020-02-28 04:34:54 +01:00

23 lines
511 B
Lua

ardour {
["type"] = "EditorAction",
name = "Bypass Plugins",
license = "MIT",
author = "Ardour Team",
description = [[Bypass Plugins on selected tracks]]
}
function factory () return function ()
local sel = Editor:get_selection ()
for r in sel.tracks:routelist ():iter () do
local i = 0;
while 1 do -- iterate over all plugins/processors
local proc = r:nth_plugin (i)
if proc:isnil () then
break
end
proc:to_insert():enable (false)
i = i + 1
end
end
end end