summaryrefslogtreecommitdiff
path: root/scripts/bypass_all_plugins.lua
blob: 913228101f5b2291698926ed35746b1221a918ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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