13
0

Script to list and count plugins used in this session

This commit is contained in:
Robin Gareus 2019-02-20 16:47:51 +01:00
parent 69322ccd1b
commit dd2ee68e21
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -1,9 +1,11 @@
ardour { ["type"] = "Snippet", name = "Dump Plugins",
ardour { ["type"] = "EditorAction", name = "Dump Plugins",
license = "MIT",
author = "Ardour Team",
description = [[List and count plugins used in this session]]
}
function factory () return function ()
local rv = "Plugins used in this session:\n | TYPE | NAME (ID)"
local all_plugs = {}
for r in Session:get_routes ():iter () do
@ -36,9 +38,13 @@ function factory () return function ()
for k,v in pairs (all_plugs) do
print (string.format ("%2d * %-6s %-30s (%s)", v['cnt'], plugintypestr(v['type']), v['name'], v['id']))
rv = rv .. "\n" .. string.format ("%2d * %-6s %-30s (%s)", v['cnt'], plugintypestr(v['type']), v['name'], v['id'])
end
LuaDialog.Message ("All Plugins", rv, LuaDialog.MessageType.Info, LuaDialog.ButtonType.Close):run()
all_plugs = nil
rv = ""
collectgarbage ();
end end