Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jtackaberry/0ee52278e48d24cce7a3 to your computer and use it in GitHub Desktop.
Save jtackaberry/0ee52278e48d24cce7a3 to your computer and use it in GitHub Desktop.
REAPER script: toggles FX floating windows of all VSTis on selected tracks
-- 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