Make specific send slots inactive
Hey @Kitch or anyone. Is there a script already made that would allow me to make a specific send slot (let's say E) inactive on all selected tracks?
Linked from:
- Kitch Membery @Kitch2022-02-02 21:25:35.563Z
Yes indeed, Have a look in the "Pro Tools" package located in the SoundFlow folder in the "Package" list.
You'll find it under "Inserts" => "Toggle Insert Active on Selected Track" => "Insert 5"
Rock on!
Brett Ryan Stewart @Brett_Ryan_Stewart
Thanks @Kitch ! But just to clarify, I'm talking about sends, not inserts :-)
I am using the "Active (Toggle) Send #" button in the sends deck that's part of the new My Pro Tools deck, and it does work, but only on one track at a time. I'm hoping to do it across selected tracks.
Like, all Send E inactive on selected tracks. Is that a thing?Kitch Membery @Kitch2022-02-02 21:56:42.980Z
Oops. You did say sends.
Ahh yes, This would be good to implement in a future update to the Pro Tools package.
I'll take a look and see if this is possible when I get a chance.
- In reply toBrett_Ryan_Stewart⬆:Kitch Membery @Kitch2022-02-02 22:23:23.291Z2022-02-04 03:18:19.497Z
Doing this would require mouse simulation unfortunately, so it is important to not have anything covering the send slots.
But this should do what you are after;
/** * @param {object} obj * @param {string} obj.sendSlot */ function toggleSendsActive({ sendSlot }) { if (!sf.ui.proTools.isRunning) throw `Pro Tools is not running`; sf.ui.proTools.appActivateMainWindow(); const sendSlotCharacters = Array.from("abcdefghij"); sf.ui.proTools.selectedTrack.trackScrollToView(); sf.ui.proTools.selectedTrack.sendButtons[sendSlotCharacters.indexOf(sendSlot)].mouseClickElement({ isShift: true, isControl: true, isOption: true, isCommand: true, }); } toggleSendsActive({ sendSlot: "j" });
Brett Ryan Stewart @Brett_Ryan_Stewart
thanks so much @Kitch !
Sadly this isn't working. I tried running from both the edit and mix windows, with all the sends showing.
I wasn't sure if I was supposed to edit the code for each slot so I tried it unedited, as well as editing this line to just be specifically the 'E' slot, which is where the send is.const sendSlotCharacters = Array.from("e");
Am i doing it wrong?
Kitch Membery @Kitch2022-02-04 03:10:43.718Z
You'll need to change the send slot character in the function call as follows;
toggleSendsActive({ sendSlot: "j" });
to
toggleSendsActive({ sendSlot: "e" });
Like most SoundFlow commands this only works in the Edit window for now.
Rock on!
Brett Ryan Stewart @Brett_Ryan_Stewart
a ha! Brilliant. Yes that's working great @Kitch .
And it even seems to work if not all the sends are on screen, AND if a window is covering it, so that's coo!! (I'm assuming that's what you meant by nothing covering them?)Since we're in Send Land... tell me if this is crazy, but a way to change a group's attributes to include send levels and mutes, in a click?
Would that be a series of mouse clicks on a UI element?
Ideally I'd love to select a specific group and change these parameters, which would probably involve turning off "follow globals"?Kitch Membery @Kitch2022-02-04 03:41:40.750Z
It may be best to start this as a new thread and field it to the community.
Be sure to note down the steps that you would take manually to achieve the workflow.
Also if your game, you may even look try your hand at creating the workflow yourself. Here are a couple of videos that may help.
Here are two videos showing how to go from Keyboard simulation to UI automation:
Rock on!
- In reply toBrett_Ryan_Stewart⬆:
Kitch Membery @Kitch2022-02-04 03:19:28.301Z
Just made a minor change to the function. best to copy and paste it again :-)
Brett Ryan Stewart @Brett_Ryan_Stewart
works like a charm, @Kitch thank you for taking the time!