summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorNikolaus Gullotta <nik@harrisonconsoles.com>2020-02-03 15:38:37 -0600
committerNikolaus Gullotta <nik@harrisonconsoles.com>2020-02-03 15:38:37 -0600
commita655997749dcff0163c1fc4fc7702463662d1b07 (patch)
tree2194816783746ba1a454ca68a6101c70ce6b0a41 /scripts
parent788d77fe5cbd44a91ca1ab0c34a11826a97f3e54 (diff)
Add more options to Mixer Reset script
Added the ability to unassign all slavables from their VCAs, and to reset record enable controls
Diffstat (limited to 'scripts')
-rw-r--r--scripts/reset_mixer.lua17
1 files changed, 17 insertions, 0 deletions
diff --git a/scripts/reset_mixer.lua b/scripts/reset_mixer.lua
index 5cc69d4774..12b4881061 100644
--- a/scripts/reset_mixer.lua
+++ b/scripts/reset_mixer.lua
@@ -8,6 +8,7 @@ ardour {
function factory() return function()
local sp_radio_buttons = {Bypass="bypass", Remove="remove", Nothing=false}
+ local am_radio_buttons = {}
local dlg = {
{type="label", align="left", colspan="3", title="Please select below the items you want to reset:" },
{type="label", align="left", colspan="3", title="(Warning: this cannot be undone!)\n" },
@@ -31,7 +32,9 @@ function factory() return function()
{type="heading", align="center", colspan="3", title="Misc." },
{type="checkbox", key="auto", colspan="3", title = "Automation (switch to manual mode)" },
+ {type="checkbox", key="rec", colspan="3", title = "Disable Record" },
{type="checkbox", key="groups", colspan="3", title = "Groups" },
+ {type="checkbox", key="vcas", colspan="3", title = "VCAs (unassign all)" },
}
function reset(ctrl, disp, auto)
@@ -176,6 +179,11 @@ function factory() return function()
if pref["sends"] then reset_send_controls(route, disp, auto) end
reset_plugins(route, pref)
+ if pref["rec"] then
+ reset(route:rec_enable_control(), disp, auto)
+ reset(route:rec_safe_control(), disp, auto)
+ end
+
if pref["fader"] then
reset(route:gain_control(), disp, auto)
end
@@ -203,6 +211,15 @@ function factory() return function()
reset(route:pan_lfe_control(), disp, auto)
reset(route:pan_width_control(), disp, auto)
end
+
+ if pref["vcas"] then
+ local slave = route:to_slavable()
+ if not(slave:isnil()) then
+ for vca in Session:vca_manager():vcas():iter() do
+ slave:unassign(vca)
+ end
+ end
+ end
end
if pref["groups"] then