13
0
livetrax/share/scripts/_new_playlist.lua

15 lines
450 B
Lua
Raw Permalink Normal View History

ardour {
["type"] = "EditorAction",
name = "New Playlists",
license = "MIT",
2020-09-30 16:06:35 -04:00
author = "Ardour Team",
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