From 523f8b4ba41a9bc225ab0051e92158984f774853 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 31 May 2018 16:01:52 +0200 Subject: Example snippet to list plugins (and their presets) --- scripts/s_pluginutils.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/scripts/s_pluginutils.lua b/scripts/s_pluginutils.lua index 2f42160b0a..e99bef7b93 100644 --- a/scripts/s_pluginutils.lua +++ b/scripts/s_pluginutils.lua @@ -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) -- cgit v1.2.3