ardour { ["type"] = "EditorAction", name = "Meter Tap", author = "Ardour Lua Taskforce", description = [[]] } function factory () return function () local dialog_options = { { type = "label", colspan = 5, title = "" }, { type = "radio", col = 1, colspan = 7, key = "select", title = "", values ={ ["Set All: Input"] = ARDOUR.MeterPoint.MeterInput, ["Set All: Pre Fader"] = ARDOUR.MeterPoint.MeterPreFader, ["Set All: Post Fader"] = ARDOUR.MeterPoint.MeterPostFader, ["Set All: Output"] = ARDOUR.MeterPoint.MeterOutput, ["Set All: Custom"] = ARDOUR.MeterPoint.MeterCustom}, default = "Set All: Input"}, { type = "label", colspan = 5, title = "" }, } local rv = LuaDialog.Dialog("Change all Meter Taps:", dialog_options):run() for route in Session:get_routes():iter() do if not(route:to_track():isnil()) then route:to_track():set_meter_point(rv['select'], false) end end end end