One button: Select output, change track color, move to folder
Hi,
I'm new to the forum and would love some help. I'm trying to create a series of buttons that will change the highlighted tracks output, color and move it to a folder. I use a template so the routing language will always be the same. Can you help? All of my efforts have failed.
- Kitch Membery @Kitch2021-09-29 01:12:18.451Z
Hi Eric,
Thanks for reaching out her in the forum. I'll take a look at it this shortly. :-)
- EEric Sanderson @Eric_Sanderson6
Very cool. Thank you
- In reply toEric_Sanderson6⬆:Kitch Membery @Kitch2021-09-29 01:36:09.229Z
Hi Eric,
Most of what you are trying to achieve can be done by using the Macro Editor.
As an example to get you started, this is how you create a macro to set the selected tracks output.
- Create a Macro by clicking the "+" button in SoundFlow and selecting macro.
- Then add a Macro Action by clicking the " + Add Action" button;
- Start typing "Select Track Output", this should filter the actions list till you have the "Select Track Output" action selected, and then press return or click OK ;
You can then customize the Macro action by adjusting its property like this;
- I got the "Output Path" by typing exactly what the path is from the output I want
After that all you need to do is assign a Trigger by clicking the "+ New Trigger" button. (If you need more information on how to do this please let me know).
If you want to add more Actions you can do this by clicking the "+Add Action button" again.
- In reply toEric_Sanderson6⬆:Kitch Membery @Kitch2021-09-29 01:48:32.312Z
This script should do what you want :-)
All with one button.
//Selected Track output path const outputPath = ["output", "1-2 (Stereo) -> Playback 1-2"] //Color Number from left to right const colorNumber = 5; //Color Brightness const colorBrightness = "Light"; //Set the selected Tracks output sf.ui.proTools.selectedTrack.trackOutputSelect({ outputPath, }); //Set the tracks Color sf.ui.proTools.colorsSelect({ colorTarget: "Tracks", colorBrightness, colorNumber, }); //Move the track to a new folder sf.ui.proTools.menuClick({ menuPath: ["Track", "Move to New Folder..."] }); const win = sf.ui.proTools.windows.whoseTitle.is("Move To New Folder").first; //Wait for the "Move to New Folder" window win.elementWaitFor(); //Click Create win.buttons.whoseTitle.is("Create").first.elementClick(); //Wait for the "Move to New Folder" window to close win.elementWaitFor({ waitType: "Disappear" });