Redesign Session+Route Template Meta Script API

Remove special-cased script types. Allow Action-Scripts to be re-used
for session-setup or route-templates.
This commit is contained in:
Robin Gareus
2017-08-18 20:41:35 +02:00
parent e951e68780
commit e0a83a758e
14 changed files with 344 additions and 77 deletions

View File

@@ -1,5 +1,5 @@
ardour {
["type"] = "SessionSetup",
["type"] = "SessionInit",
name = "Live Band Recording Session",
description = [[
This template helps create the tracks for a typical pop/rock band.
@@ -10,7 +10,7 @@ Each track comes with its pre-assigned grouping, routing, EQ and plugins.
]]
}
function session_setup ()
function factory () return function ()
--prompt the user for the tracks they'd like to instantiate
local dialog_options = {
@@ -92,4 +92,4 @@ function session_setup ()
Editor:access_action("Editor","fit_all_tracks")
Session:save_state("");
end
end end