Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Bypass All Plugins
#1
Here's a script I came up with by modifying the Bypass Plugins script from the Ardour Team. The original script bypassed the plugins of a selected track. Mine selects all tracks (using the select all tracks action) and bypasses the plugins. It then goes through each mixbus one by one (because there is no select all busses action) and the master channel and bypasses their plugins. Note: If you have hidden any busses, then the script will loop back around and disable some track plugins again. They are already disabled so this doesn't change the plugin state. This happens because the script loops 13 times to disable the bus plugins. So if you only have 8 busses showing then it will loop back around through 4 tracks, groups, or a combination thereof. This happens because I used the "select-next-route" action and apparently a route is a single non-grouped track or a group.

ardour {
["type"] = "EditorAction",
name = "Bypass All Plugins",
license = "MIT",
author = "Perry Warren / Ardour Team",
description = [[Bypass All Plugins]]
}

function factory () return function ()
Editor:access_action("Common","select-all-tracks")
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

local x = 0
while x < 13 do
Editor:access_action("Editor","select-next-route")
local sel = Editor:get_selection ()
for r in sel.tracks:routelist ():iter () do
local i = 1;
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
x = x + 1
end
Editor:access_action("Main","Escape")
Editor:access_action("Editor","select-next-route")
Editor:access_action("Main","Escape")
end end

Here's a script to enable all plugins again:

ardour {
["type"] = "EditorAction",
name = "Enable All Plugins",
license = "MIT",
author = "Perry Warren / Ardour Team",
description = [[Enable All Plugins]]
}

function factory () return function ()
Editor:access_action("Common","select-all-tracks")
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 (true)
i = i + 1
end
end

local x = 0
while x < 13 do
Editor:access_action("Editor","select-next-route")
local sel = Editor:get_selection ()
for r in sel.tracks:routelist ():iter () do
local i = 1;
while 1 do -- iterate over all plugins/processors
local proc = r:nth_plugin (i)
if proc:isnil () then
break
end
proc:to_insert():enable (true)
i = i + 1
end
end
x = x + 1
end
Editor:access_action("Main","Escape")
Editor:access_action("Editor","select-next-route")
Editor:access_action("Main","Escape")
end end


Attached Files
.txt   Bypass All Plugins.txt (Size: 1.11 KB / Downloads: 49)
.txt   Enable All Plugins.txt (Size: 1.11 KB / Downloads: 33)
Reply
#2
Hi,
Is there any way to modify this to bypass all the built in EQ and compression as well?
Allan  Klinbail 

Steam Mastering - www.steam-mastering.com 
Reply
#3
[quote='allank' pid='52256' dateline='1596068638']
Hi,
Is there any way to modify this to bypass all the built in EQ and compression as well?
[/quote

Not that I know of.
Reply
#4
Thanks for sharing.

Bypassing EQ and compressor can be done with the following, where "r" is the Route in question...

-- EQ
r:eq_enable_controllable():set_value(0, PBD.GroupControlDisposition.NoGroup)

-- compressor
r:comp_enable_controllable():set_value(0, PBD.GroupControlDisposition.NoGroup)

-- filters (lo/hi pass)
r:filter_enable_controllable():set_value(0, PBD.GroupControlDisposition.NoGroup)
Reply
#5
Excellent, thanks! Smile
Just made a few scripts for activating and bypassing EQs and compressors respectively.

Files are attached. Remove the '.txt' extension from the files - I had to add them to be able to upload them here...
On Windows the scripts go in the folder "C:\Users\[USERNAME]\AppData\Local\Mixbus7\scripts"

The functions in each file are in the form (example for bypassing all EQs):
Code:
function factory () return function ()
  for r in Session:get_tracks():iter() do
    r:eq_enable_controllable():set_value(0, PBD.GroupControlDisposition.NoGroup)
  end
end end

The only difference when activating is a '1' in place of the '0'.
And for compressors the 'eq_enable_controllable' is replaced by 'comp_enable_controllable' as seen in johndevs post above.


Attached Files
.txt   Activate_compressors.lua.txt (Size: 346 bytes / Downloads: 14)
.txt   Activate_EQs.lua.txt (Size: 327 bytes / Downloads: 13)
.txt   Bypass_compressors.lua.txt (Size: 342 bytes / Downloads: 13)
.txt   Bypass_EQs.lua.txt (Size: 322 bytes / Downloads: 13)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)