add pre-release warning dialog. It wil not be shown when running via ardev etc.
[ardour.git] / scripts / remove_unknown_procs.lua
1 ardour { ["type"] = "EditorAction", name = "Remove Unknown Plugins",
2         license     = "MIT",
3         author      = "Robin Gareus",
4         email       = "robin@gareus.org",
5         site        = "http://gareus.org",
6         description = [[Remove all unknown plugins/processors from all tracks and busses]]
7 }
8
9 function factory (params) return function ()
10         for route in Session:get_routes ():iter () do
11                 local i = 0;
12                 repeat
13                         proc = route:nth_processor (i)
14                         if not proc:isnil () and not proc:to_unknownprocessor ():isnil () then
15                                 route:remove_processor (proc, nil, true)
16                         else
17                                 i = i + 1
18                         end
19                 until proc:isnil()
20         end
21 end end