Skip to content

Instantly share code, notes, and snippets.

@wastee
Created July 8, 2018 09:29
Show Gist options
  • Save wastee/954a5d748200190db5cf471174a94283 to your computer and use it in GitHub Desktop.
Save wastee/954a5d748200190db5cf471174a94283 to your computer and use it in GitHub Desktop.
reascript show fx from receive. need sws.
from reaper_python import *
from sws_python import *
import sys
sys.argv=["Main"]
def msg(m):
RPR_ShowConsoleMsg(m)
seltracks_count = RPR_CountSelectedTracks(0)
get_seltracks = []
if seltracks_count > 1:
for i in range(seltracks_count):
seltrack = RPR_GetSelectedTrack(0, i)
get_seltracks.append(seltrack)
msg('select only one track please')
else:
the_track = RPR_GetSelectedTrack(0, 0)
sendnums = RPR_GetTrackNumSends(the_track, 0)
if sendnums == 1:
for i in range(sendnums):
the_receive_track = BR_GetMediaTrackSendInfo_Track(the_track, 0, i, 1)
RPR_TrackFX_Show(the_receive_track, 0, 1)
elif sendnums == 0:
msg('no sends')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment