|
|
|
07-01-2019, 07:28 AM
|
#1
|
Human being with feelings
Join Date: Jun 2013
Location: Krefeld, Germany
Posts: 14,688
|
solo by mute [solved]
Sorry for silly questions for supposedly well documented stuff, but maybe just some words would save me a huge amount of research.
I'd like to do a script (in EEL) that unmutes a track when I press its "solo" button and mutes all other tracks (two "soloed" tracks should be disallowed).
I did a lot of JSFXes, so I do know my way with EEL.
I suppose that I can call Reaper actions from the script (but I don't know how), and I do know that there are actions to mute all tracks and to unmute a specific track (and there also are API calls for at least the second).
And I have no idea how to make a script start when "solo" is pushed at a track.
-Michael
Last edited by mschnell; 07-18-2019 at 07:03 AM.
|
|
|
07-01-2019, 07:36 AM
|
#2
|
Human being with feelings
Join Date: May 2015
Location: Québec, Canada
Posts: 4,937
|
Quote:
Originally Posted by mschnell
And I have no idea how to make a script start when "solo" is pushed at a track.
|
Can't do that. But you could instead make a script that runs in the background periodically looking for changes in soloed tracks, using the defer API function for scheduling.
|
|
|
07-01-2019, 01:29 PM
|
#3
|
Human being with feelings
Join Date: Jun 2013
Location: Krefeld, Germany
Posts: 14,688
|
Thanks !
I'll try that...
-Michael
|
|
|
07-16-2019, 05:10 AM
|
#4
|
Human being with feelings
Join Date: Jun 2013
Location: Krefeld, Germany
Posts: 14,688
|
OK.
I managed to use the defer() functionality and to keep variables between the deferred calls using SetExtState() (really only strings possible ????)
I also found how to get the count of tracks.
But I failed to find out how to get and set the solo and mute states of a track. The "chunk" thingy sound overly complicated - unless I fail to see a simple use of same.
-Michael
|
|
|
07-16-2019, 07:56 AM
|
#5
|
Human being with feelings
Join Date: Jun 2013
Location: Krefeld, Germany
Posts: 14,688
|
Works !
-Michael
|
|
|
07-16-2019, 03:17 PM
|
#6
|
Human being with feelings
Join Date: Jun 2013
Location: Krefeld, Germany
Posts: 14,688
|
OK. Works, but:
I'd like to have the script activated when loading a dedicated project.
How can I make a project (rpp file) exectue a Reascript on load ?
At best on top of that, the script should be stopped when the project is replaced by another one or another project tab is selected, and re-activated when the appropriate project tab is selected.
-Michael
|
|
|
07-17-2019, 09:19 PM
|
#7
|
Human being with feelings
Join Date: Jun 2013
Location: Krefeld, Germany
Posts: 14,688
|
Quote:
Originally Posted by mschnell
I'd like to have the script activated when loading a dedicated project.
|
SWS -> Set Project Startup Action
does exactly this.
-Michael
|
|
|
07-18-2019, 10:50 AM
|
#8
|
Human being with feelings
Join Date: Feb 2017
Posts: 4,812
|
good!
|
|
|
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 07:08 PM.
|