summaryrefslogtreecommitdiff
path: root/share/scripts/_new_playlist.lua
diff options
context:
space:
mode:
Diffstat (limited to 'share/scripts/_new_playlist.lua')
-rw-r--r--share/scripts/_new_playlist.lua14
1 files changed, 14 insertions, 0 deletions
diff --git a/share/scripts/_new_playlist.lua b/share/scripts/_new_playlist.lua
new file mode 100644
index 0000000000..ef2e808539
--- /dev/null
+++ b/share/scripts/_new_playlist.lua
@@ -0,0 +1,14 @@
+ardour {
+ ["type"] = "EditorAction",
+ name = "New Playlists",
+ license = "MIT",
+ author = "Ardour Lua Taskforce",
+ description = [[Prompts and builds a new playlist for every track in the session. Beware the operation cannot be cancelled.]]
+}
+
+function factory () return function ()
+ for r in Session:get_tracks():iter() do
+ local rtav = Editor:rtav_from_route(r) -- lookup RTAV
+ Editor:new_playlists(rtav:to_timeaxisview())
+ end
+end end