Skip to content

Commit

Permalink
release 'Bypass all input FX for selected tracks'
Browse files Browse the repository at this point in the history
  • Loading branch information
cfillion committed Dec 28, 2016
1 parent 976a10e commit 66349a6
Showing 1 changed file with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
-- @description Bypass all input FX for selected tracks
-- @version 1.0
-- @author cfillion
-- @link http://forum.cockos.com/showthread.php?t=185229

reaper.Undo_BeginBlock()

for ti=0,reaper.CountSelectedTracks()-1 do
local track = reaper.GetSelectedTrack(0, ti)
for fi=0,reaper.TrackFX_GetRecCount(track) do
fi = fi + 0x1000000
reaper.TrackFX_SetEnabled(track, fi,
not reaper.TrackFX_GetEnabled(track, fi))
end
end

reaper.Undo_EndBlock('Bypass all input FX for selected tracks', -1)

0 comments on commit 66349a6

Please sign in to comment.