X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=scripts%2Fs_replaceplugin.lua;h=4cef07c7babb4631cc411c1146a611055e844aa2;hb=e5a41084f31d83cbf80cb68de6009a8c43524f44;hp=6ec82768b762e744888772b122089a59100b0aa9;hpb=9ed7793326e658af2edc6db059f6137713d8aa82;p=ardour.git diff --git a/scripts/s_replaceplugin.lua b/scripts/s_replaceplugin.lua index 6ec82768b7..4cef07c7ba 100644 --- a/scripts/s_replaceplugin.lua +++ b/scripts/s_replaceplugin.lua @@ -2,7 +2,7 @@ ardour { ["type"] = "Snippet", name = "Replace Plugin" } function factory () return function () - route = Session:route_by_remote_id(1) + route = Session:get_remote_nth_route(1) old = route:nth_plugin(0) new = ARDOUR.LuaAPI.new_plugin(Session, "http://gareus.org/oss/lv2/fil4#stereo", ARDOUR.PluginType.LV2, ""); route:replace_processor (old, new, nil)