From 4fffb392585eeb3626f0fbbc386ce51a524736e8 Mon Sep 17 00:00:00 2001 From: Nikolaus Gullotta Date: Thu, 16 Apr 2020 10:59:16 -0500 Subject: [PATCH] Fix Mixer Recall script Add new Mixbus internal processors to well_known list, and ensure that proc is not nil before invalidation --- share/scripts/mixer_settings_recall.lua | 17 ++++++++++++++--- 1 file 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