Script to assign a modifier to a track based on its name

Solved1.49K viewsCSS Community Scriptslist modifier
0

Good morning. I’m looking to create a script that assigns a modifier based on the track name. Let me explain in my set I want to be able to control only certain tracks with my launch control XL. I thought to see select the tracks to control with their name. Here is an example:
Track name “MIX1″=M1
Track name “MIX2″=M2
etc….
I have so far managed to create a script but I don’t use a list and I think this will cause problems for me to be able to add future functions. I am providing you with the script made for the MIX1=M1 track. If you have any suggestions I’m interested. At the moment I have to press a button to update the script when I change the name of a track or change its position. Thanks in advance

gwen971 Selected answer as best
Attached Files:
0

The difficulty with what you are asking is that every Track would need a Name Listener. As far as I know Listeners can only be established/updated on script initialization or mode change. That part is still do-able (whenever the Tracks List changes, you can temporarily switch modes) but what I haven’t figured out yet is how to give a Reaction a variable amount of Listeners.

When we make Reactions, we have to select all the Listeners in advance, i.e. it’s a fixed amount. If there was a way to vary the amount of Listeners depending on the amount of (Visible) Tracks, then I think your request could be fulfilled.

gwen971 Selected answer as best
You are viewing 1 out of 2 answers, click here to view all answers.