View Single Post
Old 06-25-2019, 02:49 PM   #2
mpl
Human being with feelings
 
mpl's Avatar
 
Join Date: Oct 2013
Location: Moscow, Russia
Posts: 2,563
Default

Code:
tr = reaper.GetSelectedTrack(0,0)
if tr then 
  cnt_fx = reaper.TrackFX_GetCount( tr )
  unbypassfxslot = math.floor(math.random()* cnt_fx)
  reaper.TrackFX_SetEnabled( tr, unbypassfxslot, true ) 
  for i= 1, cnt_fx do
    if i-1 ~= unbypassfxslot then  reaper.TrackFX_SetEnabled( tr, i-1, false )  end
  end
end
__________________
SoundCloud | MPL Scripts discussion | ReaPack | Donate
mpl is offline   Reply With Quote