|
|
|
09-27-2012, 02:28 PM
|
#1
|
Human being with feelings
Join Date: Nov 2011
Posts: 24
|
Toolbar Buttons for Vst Inserts
Is there a way to create insert Vst actions for my toolbar to cover my preferred VSTi? So that I have for example 3 buttons in my toolbar: Nexus; Battery; Alchemy - and when I click on one of them, a new track with the target VSTi will be inserted?
Thanks in advance
Starr
|
|
|
09-27-2012, 02:30 PM
|
#2
|
Human being with feelings
Join Date: Feb 2012
Posts: 1,972
|
Yes, with simple ReaScript
Create as many as you want and change the FX = "" to the name (exactly how it typed in your fx browser) of your plugin
Code:
RPR_Undo_BeginBlock()
FX = "Nexus"
TrackIdx = 0
TrackCount = RPR_CountSelectedTracks(0)
while TrackIdx < TrackCount:
track = RPR_GetSelectedTrack(0, TrackIdx)
fxIdx = RPR_TrackFX_GetByName (track, FX, 1)
isOpen = RPR_TrackFX_GetOpen(track, fxIdx)
if isOpen ==0:
isOpen = 1
else:
isOpen = 0
RPR_TrackFX_SetOpen(track, fxIdx, isOpen)
TrackIdx +=1
RPR_Undo_EndBlock("Insert FX Plugin",0)
|
|
|
09-27-2012, 02:33 PM
|
#3
|
Human being with feelings
Join Date: Feb 2012
Posts: 1,972
|
There is also another way using SWS Resources window and its actions to insert fx's or track templates
|
|
|
09-27-2012, 04:12 PM
|
#4
|
Human being with feelings
Join Date: Nov 2011
Posts: 24
|
I haven't used reascript so far. I downloaded python 3.2 but reaper says it's not compatible.. what to do now?
PS. Thanks for your quick reply
|
|
|
09-27-2012, 04:15 PM
|
#5
|
Human being with feelings
Join Date: Feb 2012
Posts: 1,972
|
Make sure you've downloaded the right version
Even if your OS is 64bit and Reaper is 32bit you need 32bit Python
|
|
|
09-27-2012, 04:18 PM
|
#6
|
Human being with feelings
Join Date: Nov 2011
Posts: 24
|
Well, my system is 64bit, reaper is 64bit, so are both python versions I installed... python 2.7 64bit and 3.2 64bit, still reaper doesnt recognize them as compatible
|
|
|
09-28-2012, 09:19 AM
|
#7
|
Human being with feelings
Join Date: Aug 2008
Location: Cumbria, UK
Posts: 2,255
|
You should have downloaded a file called python-3.2.3.amd64.msi from here http://www.python.org/download/ and run it.
Then gone into preferences, ticked reascript and pointed the .dll path to where it's installed (here it's C:\Windows\system32)
I can't remember if I had to restart Reaper, but either way it should tell you Python32 is installed, 32 is just the version number, not its bit depth.
Steve
EDIT if Reaper is telling you the version is incompatible, you're probably pointing it to the Python folder, rather than the Windows one. It's the dll you want not the exe
__________________
Meto ergo psallentes est
Last edited by bradleyfilms; 09-28-2012 at 09:23 AM.
Reason: forgetfulness
|
|
|
09-28-2012, 02:09 PM
|
#8
|
Human being with feelings
Join Date: Nov 2011
Posts: 24
|
thx now it works. now I gotta read about implementing reascripts
|
|
|
09-28-2012, 02:26 PM
|
#9
|
Human being with feelings
Join Date: Feb 2012
Posts: 1,972
|
Make a folder inside Reaper root folder called Scripts. Then create empty file with .py extension and paste the code above into it. Save to Scripts folder (pick any filename you want). Go to Actions -> Show action list -> ReaScript (New/Load)
|
|
|
09-28-2012, 02:31 PM
|
#10
|
Human being with feelings
Join Date: Nov 2011
Posts: 24
|
thanks you even saved me from reading
|
|
|
09-28-2012, 03:16 PM
|
#11
|
Human being with feelings
Join Date: Nov 2011
Posts: 24
|
worked out just fine. how do I make that a combined action like: insert new track + the VSTi ?
|
|
|
09-28-2012, 03:18 PM
|
#12
|
Human being with feelings
Join Date: Feb 2012
Posts: 1,972
|
Quote:
Originally Posted by Lo Starr
worked out just fine. how do I make that a combined action like: insert new track + the VSTi ?
|
Code:
RPR_Undo_BeginBlock()
FX = "Nexus"
RPR_Main_OnCommand(40001,0)
track = RPR_GetSelectedTrack(0, 0)
RPR_TrackFX_GetByName (track, FX, 1)
RPR_Undo_EndBlock("Insert FX Plugin",0)
Your new script template
|
|
|
09-28-2012, 03:25 PM
|
#13
|
Human being with feelings
Join Date: Nov 2011
Posts: 24
|
awesome youre da bomb
|
|
|
09-28-2012, 03:35 PM
|
#14
|
Human being with feelings
Join Date: Feb 2012
Posts: 1,972
|
Its even possible to make a type field and when you insert a new track you will be asked to type VST you want to insert. Pretty awesome Now i'm working without opening any other windows. Everything is on the main screen right at my hands, thanks to ReasScript
|
|
|
09-28-2012, 05:13 PM
|
#15
|
Human being with feelings
Join Date: Nov 2011
Posts: 24
|
Now that makes the workflow really fast... incredible
|
|
|
10-04-2012, 12:04 PM
|
#16
|
Human being with feelings
Join Date: Sep 2012
Location: Canada
Posts: 215
|
How do i script if I want to use the AU version of the plugin instead of the default VST?
|
|
|
10-05-2012, 03:09 AM
|
#17
|
Human being with feelings
Join Date: May 2009
Location: Germany
Posts: 213
|
Quote:
Originally Posted by Viente
Code:
RPR_Undo_BeginBlock()
FX = "Nexus"
RPR_Main_OnCommand(40001,0)
track = RPR_GetSelectedTrack(0, 0)
RPR_TrackFX_GetByName (track, FX, 1)
RPR_Undo_EndBlock("Insert FX Plugin",0)
Your new script template
|
Hey Viente,
that´s cool. Thanks!
|
|
|
10-26-2012, 05:57 AM
|
#18
|
Human being with feelings
Join Date: Feb 2006
Location: decepticon mothership in a hidden place inside a mountain
Posts: 3,754
|
That's great !
Thank you
|
|
|
10-29-2012, 03:22 AM
|
#19
|
Human being with feelings
Join Date: Feb 2006
Location: decepticon mothership in a hidden place inside a mountain
Posts: 3,754
|
Can it work with track templates instead of VSTI ?
|
|
|
10-29-2012, 03:57 AM
|
#20
|
-blänk-
Join Date: Jun 2008
Posts: 11,359
|
Have a look at the Resources view from the SWS extensions. You can load all sorts of stuff (track templates, media files, FX chains etc) into slots and then use actions (hence also toolbar buttons) to load them (type "s&m slot" in the filter to look in awe at all the possible actions related to the resources window - add "track template" to show only those related to track templates).
The extension defaults to only a few slots for each type of these actions, but you can extend the extension yourself .
To add more slot actions to the list, find S&M.ini in your user data folder and open it in a text editor. In the section [NbOfActions] you can set up to 99 slots for all kinds of S&M slot actions. Quit Reaper before you edit the ini file!
|
|
|
10-29-2012, 04:54 AM
|
#21
|
Human being with feelings
Join Date: Feb 2006
Location: decepticon mothership in a hidden place inside a mountain
Posts: 3,754
|
Thank you GOfer.
I was pretty convinced that SWS could do that, but i couldn't figure out how to do it
|
|
|
08-15-2015, 06:17 AM
|
#22
|
Human being with feelings
Join Date: Feb 2012
Posts: 38
|
So how to make toolbar icon/label with vst exact insert for inserting to selected track?
A way described above always asks me what .py file to open
A want to make several scripts for several vsts.
And if I can do it with SWS slots there are just 4 slots available in actions :-(
|
|
|
08-17-2015, 09:32 AM
|
#23
|
Human being with feelings
Join Date: Jan 2015
Location: Milwaukee
Posts: 15
|
Such a great idea! wooo for reaper!
I'm having trouble implementing the script. *new to reascript. I saved the block of code in Viente's post on notepad and named it 'name.py'. Reaper won't recognise it and windows still thinks it's a txt file.
Also interested to make custom icons!
|
|
|
08-17-2015, 11:03 AM
|
#24
|
Human being with feelings
Join Date: Jun 2007
Location: Northern Michigan
Posts: 6,919
|
Quote:
Originally Posted by MReaper
Such a great idea! wooo for reaper!
I'm having trouble implementing the script. *new to reascript. I saved the block of code in Viente's post on notepad and named it 'name.py'. Reaper won't recognise it and windows still thinks it's a txt file.
Also interested to make custom icons!
|
Do you have Python installed?
__________________
Peace...
bluzkat
|
|
|
08-17-2015, 11:36 AM
|
#25
|
Human being with feelings
Join Date: Jan 2015
Location: Milwaukee
Posts: 15
|
Nope! Didn't know I needed to..
I have made the scripts python files, put them in the right folder and Reaper still won't load them from the Reascript new/load in the action list. I get 'no supported script files could be loaded'. Any clues?
|
|
|
08-17-2015, 06:21 PM
|
#26
|
Human being with feelings
Join Date: Apr 2013
Location: France
Posts: 9,866
|
Basic Lua conversion of Viente Script
Code:
reaper.Undo_BeginBlock()
FX = "Massive"
TrackIdx = 0
TrackCount = reaper.CountSelectedTracks(0)
while TrackIdx < TrackCount do
track = reaper.GetSelectedTrack(0, TrackIdx)
fxIdx = reaper.TrackFX_GetByName (track, FX, 1)
isOpen = reaper.TrackFX_GetOpen(track, fxIdx)
if isOpen ==0 then
isOpen = 1
else
isOpen = 0
end
reaper.TrackFX_SetOpen(track, fxIdx, isOpen)
TrackIdx =TrackIdx+1
end
reaper.Undo_EndBlock("Insert FX Plugin",0)
That should do the trick :P
|
|
|
08-17-2015, 06:44 PM
|
#27
|
Human being with feelings
Join Date: Feb 2012
Posts: 38
|
I did it that day with SWS. Icons for plugins and chains. One click inserts them to selected track/tracks (with my own presets).
|
|
|
08-18-2015, 04:32 PM
|
#28
|
Human being with feelings
Join Date: Oct 2008
Location: Right Hear
Posts: 15,618
|
thanks X-Ray... that should solve the prob with python for those that have the problem
|
|
|
10-06-2016, 03:16 PM
|
#29
|
Human being with feelings
Join Date: Jul 2009
Posts: 3,294
|
is it possible to make a script that will load another (unlimited) vsti unit everytime that I run it into the selected track?
|
|
|
10-06-2016, 03:27 PM
|
#30
|
Human being with feelings
Join Date: Apr 2013
Location: France
Posts: 9,866
|
@Reflected
you mean add another VST instance every time the button is press ? like if you press 5 times, you get 5 FX instance on selected tracks ?
WHat do you mean by "vst unit" ?
|
|
|
10-06-2016, 04:04 PM
|
#31
|
Human being with feelings
Join Date: Jan 2014
Posts: 5,193
|
SWS method is the easiest. First make your 3 tracks, save them each as a track template.
I made a folder in the templates folder called _SWS Track Templates, to organize them.
Then load up the SWS resources, go to Track Templates, and create some slots that point to your track templates.
Then all you have to do is assign toolbar buttons, or MIDI or keypress shortcuts, to those SWS slots. The actions are SWS/S&M: Resources - Import tracks from track templates, slot 01 etc for slot 02 03 and 04. Oddly it only goes to 04. Just noticed that now. Luckily I only use 3!
That's bass and guitar DI templates with amps and cabinets and all my favourite effects already loaded up, and the other one is a blank track record armed and monitored and the input set to All channels of MIDI.
To load the effect into an existing track instead, just use the Paste FX chain actions instead, and save the individual VST effects as an effect chain with the same process as above.
|
|
|
10-06-2016, 04:19 PM
|
#32
|
Human being with feelings
Join Date: Jul 2011
Location: Brooklyn
Posts: 2,611
|
Quote:
Originally Posted by Fergler
Oddly it only goes to 04. Just noticed that now. Luckily I only use 3!
|
Fergler, I had this issue using chain slots for one key "audiosuite" type actions and EpicSounds helped to show that the # of slots could be increased by opening the S&M.ini file and literally typing in a higher number at "max slots". I went from 4 slots to 50 : )
http://forum.cockos.com/showthread.p...00#post1707900
Likely that will help here too (?)
__________________
The reason rain dances work is because they don't stop dancing until it rains.
|
|
|
10-06-2016, 04:23 PM
|
#33
|
Human being with feelings
Join Date: Jan 2014
Posts: 5,193
|
Huh, ok! Thanks!
|
|
|
10-06-2016, 10:29 PM
|
#34
|
Human being with feelings
Join Date: Jul 2009
Posts: 3,294
|
Quote:
Originally Posted by X-Raym
@Reflected
you mean add another VST instance every time the button is press ? like if you press 5 times, you get 5 FX instance on selected tracks ?
WHat do you mean by "vst unit" ?
|
yes man
possible?
Last edited by Reflected; 10-06-2016 at 10:47 PM.
|
|
|
10-08-2016, 12:57 AM
|
#36
|
Human being with feelings
Join Date: Jul 2009
Posts: 3,294
|
Quote:
Originally Posted by X-Raym
|
awesome! thx Raym!
one more thing.
can the plugin go to front once I click the button?
currently if the fx window isn't open, the plugin will just go there and won't show up unless I do it manually.
|
|
|
03-30-2017, 08:10 AM
|
#37
|
Human being with feelings
Join Date: Jul 2014
Location: London
Posts: 733
|
Quote:
Originally Posted by Reflected
awesome! thx Raym!
one more thing.
can the plugin go to front once I click the button?
currently if the fx window isn't open, the plugin will just go there and won't show up unless I do it manually.
|
Any headway with that? I too would like it to open as U've just loaded it.
Cheers
|
|
|
03-30-2017, 11:33 AM
|
#38
|
Human being with feelings
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,551
|
Replace the script's contents with this:
Code:
reaper.Undo_BeginBlock()
FX = "ReaComp"
TrackIdx = 0
TrackCount = reaper.CountSelectedTracks(0)
while TrackIdx < TrackCount do
track = reaper.GetSelectedTrack(0, TrackIdx)
reaper.TrackFX_AddByName( track, FX, 0, -1 )
reaper.TrackFX_Show( track, reaper.TrackFX_GetCount( track ) - 1 , 3 )
TrackIdx =TrackIdx+1
end
reaper.Undo_EndBlock("Add new track FX instance - "..FX,-1)
It will float every instance of the plugin that it adds.
|
|
|
12-31-2019, 11:45 AM
|
#39
|
Human being with feelings
Join Date: Jul 2013
Location: Portugal
Posts: 1,827
|
How would i change the code to instead of creating the insert FX on a selected track , it creates a brand new track with the desired fx and names the track with the Synth/ FX name?
|
|
|
04-03-2020, 06:34 AM
|
#40
|
Banned
Join Date: Jul 2017
Posts: 192
|
Quote:
Originally Posted by Lokasenna
Replace the script's contents with this:
Code:
reaper.Undo_BeginBlock()
FX = "ReaComp"
TrackIdx = 0
TrackCount = reaper.CountSelectedTracks(0)
while TrackIdx < TrackCount do
track = reaper.GetSelectedTrack(0, TrackIdx)
reaper.TrackFX_AddByName( track, FX, 0, -1 )
reaper.TrackFX_Show( track, reaper.TrackFX_GetCount( track ) - 1 , 3 )
TrackIdx =TrackIdx+1
end
reaper.Undo_EndBlock("Add new track FX instance - "..FX,-1)
It will float every instance of the plugin that it adds.
|
How can i upgrade code to ability insert FX on Master track?
|
|
|
Thread Tools |
|
Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 06:41 PM.
|