diff options
author | Robin Gareus <robin@gareus.org> | 2020-02-23 20:48:02 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2020-02-23 20:48:02 +0100 |
commit | 180843f9bd28b191c7404245ba0a121107992511 (patch) | |
tree | c60312dc09f76c2f55ba2383245c427e15c38dea /share/scripts/new_playlist.lua | |
parent | bf649cd68ad46c34a656700aa6cb89416d648c64 (diff) |
Also move Lua scripts to share subfolder
Diffstat (limited to 'share/scripts/new_playlist.lua')
-rw-r--r-- | share/scripts/new_playlist.lua | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/share/scripts/new_playlist.lua b/share/scripts/new_playlist.lua new file mode 100644 index 0000000000..54563cd6a5 --- /dev/null +++ b/share/scripts/new_playlist.lua @@ -0,0 +1,17 @@ +ardour { + ["type"] = "EditorAction", + name = "New Playlist", + license = "MIT", + author = "Ardour Lua Taskforce", + description = [[Prompts and builds a new playlist for every track in the session.]] +} + +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 + +collectgarbage() +end end |