I'd like to remove all fx from selected tracks also, I also want to do this from a toolbar button without needing to press/hold down any keyboard keys.
Searching, but don't see anything in Actions/ReaPack that can do this.
EDIT, came up with this after looking at a few other scripts, seems to work OK.
Code:
-- Remove all FX from selected tracks
reaper.Undo_BeginBlock()
for i =1, reaper.CountSelectedTracks(0) do
track = reaper.GetSelectedTrack(0,i-1)
for fx_id = reaper.TrackFX_GetCount(track), 1, -1 do
reaper.SNM_MoveOrRemoveTrackFX(track, fx_id-1, 0)
end
end
reaper.Undo_EndBlock('Remove all FX from selected tracks', 0)