summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikolaus Gullotta <nikolaus.gullotta@gmail.com>2018-08-02 13:37:01 -0500
committerNikolaus Gullotta <nikolaus.gullotta@gmail.com>2018-08-02 13:37:01 -0500
commitda27661dd4d15e1bfc068f069262d58b07a6da18 (patch)
tree82f2c96d8970932439cb2207666527e68d1890ec
parent92b68a87d96494b6f1adfa0306c81026d1a29e18 (diff)
use ordered list of routes and fix some dialog box names
-rw-r--r--scripts/mixer_settings_recall.lua4
-rw-r--r--scripts/mixer_settings_store.lua9
2 files changed, 6 insertions, 7 deletions
diff --git a/scripts/mixer_settings_recall.lua b/scripts/mixer_settings_recall.lua
index 1fcfd7ae45..365262d703 100644
--- a/scripts/mixer_settings_recall.lua
+++ b/scripts/mixer_settings_recall.lua
@@ -379,7 +379,7 @@ function factory () return function ()
recall_options[2]['path'] = global_default_path
local rv = LuaDialog.Dialog("Recall Mixer Settings:", recall_options):run()
if not(rv) then return end
- local dry_return = LuaDialog.Dialog("Mixer Store:", dry_run(false, rv['file'])):run()
+ local dry_return = LuaDialog.Dialog("Mixer Recall:", dry_run(false, rv['file'])):run()
if dry_return then
recall(false, rv['file'], dry_return)
else
@@ -400,7 +400,7 @@ function factory () return function ()
recall_options[2]['path'] = local_default_path
local rv = LuaDialog.Dialog("Recall Mixer Settings:", recall_options):run()
if not(rv) then return end
- local dry_return = LuaDialog.Dialog("Mixer Store:", dry_run(false, rv['file'])):run()
+ local dry_return = LuaDialog.Dialog("Mixer Recall:", dry_run(false, rv['file'])):run()
if dry_return then
recall(true, rv['file'], dry_return)
else
diff --git a/scripts/mixer_settings_store.lua b/scripts/mixer_settings_store.lua
index 4c697aeb2a..0708a0a547 100644
--- a/scripts/mixer_settings_store.lua
+++ b/scripts/mixer_settings_store.lua
@@ -174,7 +174,7 @@ function factory () return function ()
local groups_to_write = {}
local i = 0
- local tracks = Session:get_routes()
+ local tracks = Session:get_stripables()
if selected then tracks = sel.tracks:routelist() end
@@ -212,10 +212,9 @@ function factory () return function ()
end
for r in tracks:iter() do
- if r:is_monitor () or r:is_auditioner () then goto nextroute end -- skip special routes
-
- print(r:name(), r:presentation_info_ptr():order())
-
+ if r:is_monitor () or r:is_auditioner () or not(r:to_vca():isnil()) then goto nextroute end -- skip special routes
+ r = r:to_route()
+ if r:isnil() then goto nextroute end
local order = ARDOUR.ProcessorList()
local x = 0
repeat