Skip to content

Commit

Permalink
Update cfillion_Toggle track FX bypass by name.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
cfillion authored Oct 13, 2023
1 parent fbc6443 commit 7453427
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Tracks Properties/cfillion_Toggle track FX bypass by name.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
-- @description Toggle track FX bypass by name
-- @author cfillion
-- @version 1.3
-- @changelog Search in the master track too [cfillion/reascripts#5]
-- @changelog Search in the master track too and add '/master' filter [cfillion/reascripts#5]
-- @provides
-- .
-- [main] . > cfillion_Toggle track FX bypass by name (create action).lua
Expand Down Expand Up @@ -29,6 +29,8 @@ end
local function matchTrack(track, filter)
if filter == '/selected' then
return reaper.IsTrackSelected(track)
elseif filter == '/master' then
return reaper.GetMasterTrack(nil) == track
else
local _, name = reaper.GetTrackName(track, '')
return name:lower():find(filter)
Expand All @@ -42,7 +44,7 @@ local function prompt()
end

local ok, csv = reaper.GetUserInputs(script_name, 2,
"Toggle track FX bypass matching:,On tracks (name or /selected):,extrawidth=100",
"Toggle track FX bypass matching:,On tracks (name, /selected or /master):,extrawidth=100",
',' .. default_track_filter)
if not ok or csv:len() <= 1 then return end

Expand Down

0 comments on commit 7453427

Please sign in to comment.