forked from ReaTeam/ReaScripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
release 'Bypass all input FX for selected tracks'
- Loading branch information
Showing
1 changed file
with
17 additions
and
0 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
Tracks Properties/cfillion_Bypass all input FX for selected tracks.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |