summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikolaus Gullotta <nik@harrisonconsoles.com>2020-04-16 10:59:16 -0500
committerNikolaus Gullotta <nik@harrisonconsoles.com>2020-04-16 10:59:44 -0500
commit4fffb392585eeb3626f0fbbc386ce51a524736e8 (patch)
tree6467b90342f26973ac418685e7d5aa75bf90ee6e
parent87626e0bdd33f8e3ff8ecbe2142f4030425f73ee (diff)
Fix Mixer Recall script
Add new Mixbus internal processors to well_known list, and ensure that proc is not nil before invalidation
-rw-r--r--share/scripts/mixer_settings_recall.lua17
1 files changed, 14 insertions, 3 deletions
diff --git a/share/scripts/mixer_settings_recall.lua b/share/scripts/mixer_settings_recall.lua
index 3da776fd2e..27a2e56e05 100644
--- a/share/scripts/mixer_settings_recall.lua
+++ b/share/scripts/mixer_settings_recall.lua
@@ -204,7 +204,16 @@ function factory ()
local rt_group = group_by_name(group_name)
if rt_group then rt_group:add(rt) end
- well_known = {'PRE', 'Trim', 'EQ', 'Comp', 'Fader', 'POST'}
+ well_known = {
+ 'PRE',
+ 'Trim',
+ 'EQ',
+ 'Comp',
+ 'Fader',
+ 'POST',
+ "Input Stage",
+ "Mixbus Limiter"
+ }
protected_instrument = false
for k, v in pairs(order) do
local proc = Session:processor_by_id(PBD.ID(1))
@@ -220,8 +229,10 @@ function factory ()
for _, control in pairs(well_known) do
if name == control then
proc = get_processor_by_name(rt, control)
- invalidate[v] = proc:to_stateful():id():to_s()
- goto nextproc
+ if proc and not(proc:isnil()) then
+ invalidate[v] = proc:to_stateful():id():to_s()
+ goto nextproc
+ end
end
end
if not(proc) then goto nextproc end