Old 08-11-2017, 03:58 AM   #1
XamiKami
Human being with feelings
 
Join Date: Aug 2017
Posts: 41
Default Manipulating routing via Lua

Hey! I want to make a script that automatically makes a drumfolder, load my sampler into it and route the outputs to the single subtracks ( like a track for Kick, Snare, etc)
I have got it so far that it loads the plugin and creates the tracks. But now i have to do the routing. I have to makes a lot of sends from one Track to every one of those, but i cant find the right line of code to do so.

Is it even possible to create a Send via a lua-Script? if yes, how?
thanks in advance, Xami
XamiKami is offline   Reply With Quote
Old 08-11-2017, 05:23 AM   #2
cfillion
Human being with feelings
 
cfillion's Avatar
 
Join Date: May 2015
Location: Québec, Canada
Posts: 4,937
Default

Look at the CreateTrackSend and SetTrackSendInfo_Value API functions. They were added in REAPER v5.15. SWS also has a few older functions for managing sends and receives.
cfillion is offline   Reply With Quote
Old 08-11-2017, 07:21 AM   #3
XamiKami
Human being with feelings
 
Join Date: Aug 2017
Posts: 41
Default

Thanks man, thats it! Didn't see that before D: It works now ;D
XamiKami is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 06:11 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.