Example snippet to list plugins (and their presets)
This commit is contained in:
parent
d95df91642
commit
523f8b4ba4
@ -2,6 +2,18 @@ ardour { ["type"] = "Snippet", name = "Plugin Utils" }
|
||||
|
||||
function factory () return function ()
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
-- List all Plugins
|
||||
for p in ARDOUR.LuaAPI.list_plugins():iter() do
|
||||
print (p.name, p.unique_id, p.type)
|
||||
local psets = p:get_presets()
|
||||
if not empty:empty() then
|
||||
for pset in psets:iter() do
|
||||
print (" - ", pset.label)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
-- add a Plugin (here LV2) to all mono tracks that contain the pattern "dru"
|
||||
-- and load a plugin-preset (if it exists)
|
||||
|
Loading…
Reference in New Issue
Block a user