Created
January 10, 2016 02:03
-
-
Save jtackaberry/0ee52278e48d24cce7a3 to your computer and use it in GitHub Desktop.
REAPER script: toggles FX floating windows of all VSTis on selected tracks
This file contains hidden or 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
-- Version 1.0 | |
-- | |
-- This script toggles visibility of all instrument FX on the selected tracks. | |
-- It requires that the FX be prefixed with "VSTi:" (which Reaper does do by | |
-- default). | |
-- | |
-- Released to the public domain. | |
for idx = 0, reaper.CountSelectedTracks(0) - 1 do | |
track = reaper.GetSelectedTrack(0, idx) | |
for fx = 0, reaper.TrackFX_GetCount(track) - 1 do | |
r, name = reaper.TrackFX_GetFXName(track, fx, "") | |
if string.sub(name, 0, 5) == "VSTi:" then | |
if reaper.TrackFX_GetFloatingWindow(track, fx) == nil then | |
reaper.TrackFX_Show(track, fx, 3) | |
else | |
reaper.TrackFX_Show(track, fx, 2) | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment