mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 23:05:04 +01:00
lua script to remove all unknown processors
This commit is contained in:
parent
207d9c81db
commit
491d183c78
1 changed files with 21 additions and 0 deletions
21
scripts/remove_unknown_procs.lua
Normal file
21
scripts/remove_unknown_procs.lua
Normal file
|
|
@ -0,0 +1,21 @@
|
||||||
|
ardour { ["type"] = "EditorAction", name = "Remove Unknown Plugins",
|
||||||
|
license = "MIT",
|
||||||
|
author = "Robin Gareus",
|
||||||
|
email = "robin@gareus.org",
|
||||||
|
site = "http://gareus.org",
|
||||||
|
description = [[Remove all unknown plugins/processors from all tracks and busses]]
|
||||||
|
}
|
||||||
|
|
||||||
|
function factory (params) return function ()
|
||||||
|
for route in Session:get_routes ():iter () do
|
||||||
|
local i = 0;
|
||||||
|
repeat
|
||||||
|
proc = route:nth_processor (i)
|
||||||
|
if not proc:isnil () and not proc:to_unknownprocessor ():isnil () then
|
||||||
|
route:remove_processor (proc, nil, true)
|
||||||
|
else
|
||||||
|
i = i + 1
|
||||||
|
end
|
||||||
|
until proc:isnil()
|
||||||
|
end
|
||||||
|
end end
|
||||||
Loading…
Add table
Add a link
Reference in a new issue