Mixer Save+Recall (Lua): add option to recall the route names stored in the file
This commit is contained in:
parent
9a580078f0
commit
e8058792a3
@ -118,6 +118,7 @@ function factory (params)
|
|||||||
--print(i, l)
|
--print(i, l)
|
||||||
|
|
||||||
local create_groups = dry_run["create_groups"]
|
local create_groups = dry_run["create_groups"]
|
||||||
|
local set_names = dry_run["set_names"]
|
||||||
local skip_line = false
|
local skip_line = false
|
||||||
|
|
||||||
local plugin, route, group = false, false, false
|
local plugin, route, group = false, false, false
|
||||||
@ -181,6 +182,8 @@ function factory (params)
|
|||||||
if rt:isnil() then rt = Session:route_by_name(name) end
|
if rt:isnil() then rt = Session:route_by_name(name) end
|
||||||
if rt:isnil() then goto nextline end
|
if rt:isnil() then goto nextline end
|
||||||
|
|
||||||
|
if (set_names) then rt:set_name(name) end
|
||||||
|
|
||||||
if sends then
|
if sends then
|
||||||
for i, data in pairs(sends) do
|
for i, data in pairs(sends) do
|
||||||
i = i-1
|
i = i-1
|
||||||
@ -413,6 +416,9 @@ function factory (params)
|
|||||||
type = "checkbox", col=0, colspan=2, align="left", key = "create_groups", default = true, title = "Create Groups if necessary?"
|
type = "checkbox", col=0, colspan=2, align="left", key = "create_groups", default = true, title = "Create Groups if necessary?"
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
table.insert(dry_table, {
|
||||||
|
type = "checkbox", col=0, colspan=2, align="left", key = "set_names", default = true, title = "Set Names from File"
|
||||||
|
})
|
||||||
return dry_table
|
return dry_table
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user