Thread: API features
View Single Post
Old 08-03-2016, 04:21 AM   #3
Lokasenna
Human being with feelings
 
Lokasenna's Avatar
 
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,551
Default

Quote:
Originally Posted by woodslanding View Post
Is there a command to load a particular VST into a particular slot?
The closest you'll get is:

integer reaper.TrackFX_AddByName(MediaTrack track, string fxname, boolean recFX, integer instantiate)

Reaper doesn't think in terms of slots the way Pro Tools does - you can't put all your EQs in the third slot, for example, because new plugins are just added to whatever's there.

Some people have used empty JS plugins to fill up their tracks' FX chains and then be able to work as if there were slots, so that's an option for you.

Quote:
Is there a command to load a particular FXP or FXB to a particular slot?
Not that I can see.

Quote:
Is there a command to get the complete list of preset names from a VST?
I imagine it's just giving you the first one, since most people are only going to have one synthesizer per track. If it helps, there's also:

string reaper.HasTrackMIDIPrograms(integer track)

to give you the name of the plugin those programs are for.
__________________
I'm no longer using Reaper or working on scripts for it. Sorry. :(
Default 5.0 Nitpicky Edition / GUI library for Lua scripts / Theory Helper / Radial Menu / Donate
Lokasenna is offline   Reply With Quote