summaryrefslogtreecommitdiff
path: root/share/scripts/bypass_all_plugins.lua
diff options
context:
space:
mode:
Diffstat (limited to 'share/scripts/bypass_all_plugins.lua')
-rw-r--r--share/scripts/bypass_all_plugins.lua22
1 files changed, 22 insertions, 0 deletions
diff --git a/share/scripts/bypass_all_plugins.lua b/share/scripts/bypass_all_plugins.lua
new file mode 100644
index 0000000000..913228101f
--- /dev/null
+++ b/share/scripts/bypass_all_plugins.lua
@@ -0,0 +1,22 @@
+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():deactivate()
+ i = i + 1
+ end
+ end
+end end