Script to list and count plugins used in this session
This commit is contained in:
parent
69322ccd1b
commit
dd2ee68e21
@ -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
|
Loading…
Reference in New Issue
Block a user