No internet connection
  1. Home
  2. How to

Make specific send slots inactive

By Brett Ryan Stewart @Brett_Ryan_Stewart
    2022-02-02 21:18:17.706Z

    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?

    • 10 replies
    1. Kitch Membery @Kitch2022-02-02 21:25:35.563Z

      Hi @Brett_Ryan_Stewart,

      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!

      1. 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?

        1. 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.

      2. Kitch Membery @Kitch2022-02-02 22:23:23.291Z2022-02-04 03:18:19.497Z

        Hi @Brett_Ryan_Stewart,

        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"
        });
        
        1. 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?

          1. Kitch Membery @Kitch2022-02-04 03:10:43.718Z

            Hi @Brett_Ryan_Stewart,

            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!

            1. 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"?

              1. 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!

            2. Kitch Membery @Kitch2022-02-04 03:19:28.301Z

              Hi @Brett_Ryan_Stewart

              Just made a minor change to the function. best to copy and paste it again :-)

              1. works like a charm, @Kitch thank you for taking the time!