No internet connection
  1. Home
  2. How to

Selecting a VCA or Folder to spill on S6.

By Kevin Roache @Kevin_Roache
    2021-12-04 02:14:11.122Z

    Hi. Recently, I discovered that if I used the SoundFlow command "Open Insert on Track" on a Routing Folder with an insert, I could get the folder to attention and spill on the S6 automatically. Even if the folder is not visible on the screen. Does anyone know a command that cuts out the middle man (the "Open Insert on Track" command) so that this could be done a little cleaner? I tried creating a command to click on the track name (Click UI element) but the folder or VCA needs to be visible on screen to execute this. Thanks.

    • 56 replies

    There are 56 replies. Estimated reading time: 21 minutes

    1. Kitch Membery @Kitch2021-12-13 22:07:01.587Z

      Hi @Kevin_Roache,

      Thanks for posting here, I'm sorry you have had no replies yet.

      From your post, I'm not sure I understand the workflow you are trying to achieve. It may be best to think about how you reproduce the workflow manually and list the steps. That way will be much easier for the SoundFlow community to provide you with a possible solution.

      Something like, "When I do x, I want y to happen. To do this manually I would do A... B... C... to achieve this result"

      I'll keep my eye on this post to see if I can help you further with your workflow. :-)

      Rock on!

      1. K
        In reply toKevin_Roache:
        Kevin Roache @Kevin_Roache
          2021-12-13 22:19:12.044Z

          Hi! Thanks for your reply. Basically, I would like to be able to select a track even when it is not visible on the current screen. That way, I could attention/spill Folders and VCAs without having to scroll them. - There is no manual way to do this except to scroll/click or pick the Folder/VCA from the console surface.

          1. Kitch Membery @Kitch2021-12-13 22:27:40.303Z

            I see. That makes total sense, thanks for clarifying.

            You can select a track by name even if it is off the screen, like this;

            sf.ui.proTools.trackSelectByName({names:["Enter Track Name Here"]});
            

            Rock on!

            1. In reply toKevin_Roache:
              Kitch Membery @Kitch2021-12-13 22:30:40.842Z

              Let me know if that works for the S6, as there may be one more step to make the S6 refresh after the track is selected. Unfortunately, I can't test it (I've not got an S6). :-)

              1. KKevin Roache @Kevin_Roache
                  2021-12-13 22:42:23.521Z

                  I have tried this before and, yes, it does work to select the track but it doesn't make a VCA spill on the S6. To do that, you have to simulate "clicking" on the track. For some reason, when I use the command "Open Insert on Track" on a routing folder, that same folder will attention and spill on the S6. Do you think there is a way to skip over this cheat and achieve what I need directly?

                  1. Hm this is a really good catch.

                    So yea, effectively, either mouse clicking (not UI clicking) the track name, or opening an insert causes the S6 to attention & spill. That makes total sense to me given how PT and Eucon operate from my experience.

                    The only thing I can think of would be to open the track's output window / panner instead, as that would probably force the same thing to happen – but I'm not sure it's much cleaner.

                    Perhaps there's a way to click a menu item after the track is selected to force the attention/spill to occur, but I'm not aware of any (and I don't have an S6 to test with).

                    1. I'm assuming by the way that you don't want the selected, off screen track to be scrolled onto screen right? Because SF has support for bringing a track on screen, and that could make the "click the track name" always work.

                      1. In reply tochrscheuer:
                        KKevin Roache @Kevin_Roache
                          2021-12-13 22:50:07.080Z

                          Hmm. Okay, I will try the track's output window/panner for now. Although that won't work on a VCA. If you have any future brainstorms, please let me know! Thanks for your help.

                        • In reply toKevin_Roache:
                          Kitch Membery @Kitch2021-12-13 22:49:02.745Z

                          I think it's simply because the track selection change is not being registered by pro tools.

                          The possible workaround would be to so the following;

                          const trackNames = ["Enter Track Name Here"];
                          
                          sf.ui.proTools.trackSelectByName({ names: trackNames });
                          
                          //Hack to refresh Pro Tools.
                          sf.keyboard.press({
                              keys: "left",
                          });
                          

                          Let me know if that works. :-)

                          1. track selection change is not being registered by pro tools.

                            Eucon attentioning works differently than normal track selections in SF/PT (and updating menu items as your code would definitely ensure), but yea it's worth a shot.

                            1. Kitch Membery @Kitch2021-12-13 22:52:39.258Z

                              Thanks, Christian, Good to know. :-)

                            2. In reply toKitch:
                              KKevin Roache @Kevin_Roache
                                2021-12-13 22:51:12.971Z

                                I will try this! Thanks!

                        • K
                          In reply toKevin_Roache:
                          Kevin Roache @Kevin_Roache
                            2021-12-13 23:56:45.204Z

                            It was able select the track ... but not simulate a click. Thank you. Will try updating a menu item. Any idea for a VCA menu item?

                            1. To scroll a track into view and click it, this should do it – make sure to fill in the relevant track name in the first line:

                              const trackName = 'MY TRACK';
                              
                              const track = sf.ui.proTools.trackGetByName({ name: trackName }).track;
                              track.trackSelect();
                              track.trackScrollToView();
                              track.titleButton.mouseClickElement();
                              

                              In terms of a menu item that could focus the track, I would try those that can expand and contract track selections.

                              1. KKevin Roache @Kevin_Roache
                                  2021-12-14 16:26:29.003Z

                                  This worked well. Brought the track into view without the lag of the "scroll to track" window. Thank you. What would be a menu item that expands or contracts track selection besides folder open/close?

                                  1. That's great to hear :)

                                    I don't remember the exact name of the menu items (and I don't have PT installed on this computer). It's something they added a few years ago and not many people know about these. If I recall correctly, they're in the Edit menu under a submenu by the name of something like selection something, and there are menu items to expand and contract the top of the selection (topmost selected track) as well as expand and contract at the bottom of the selection (bottommost selected track).

                                    1. KKevin Roache @Kevin_Roache
                                        2021-12-16 16:42:59.349Z

                                        Attempted to use the "extend selection down to members" command with track selection but it doesn't seem to work as theorized. If there is a different command to try, please let me know.

                                        1. Gotcha, yea I didn't have too high hopes for it. I can't think of anything else that would work, unfortunately (besides what I already showed above).

                                          1. KKevin Roache @Kevin_Roache
                                              2021-12-16 17:53:28.599Z

                                              Okay. Thanks. Is there an adjustment I can make to "Scroll to View" so that the selected track lands at the top of the edit window? If it's a folder and was below view before command, it only comes to the bottom most position in the the edit window. I'd rather have it not move at all, but if it has to, it would be better on top so I can see all the members.

                                              1. Not that I know of in any easy way. You could automate stepping through and selecting the tracks below it until the track in question would be topmost, but I don't have time right now to dive into that. It wouldn't be a quick and easy solution in any event, AFAIK.

                                                1. KKevin Roache @Kevin_Roache
                                                    2022-01-11 18:03:08.397Z

                                                    I notice that when I right-click a track and choose "scroll into view," ProTools justifies the track to the top of the edit window. However, when this "track.trackScrollToView();" code that you gave me is executed, the selected track is justified at the bottom if the track was below view at time of execution. Is there a way to make the code behave like ProTools "scroll into view" so that the track lands at the top? Thanks.

                                                    1. Instead of trackScrollToView you can use "Scroll to Track" from the main PT menu like this:

                                                      const track = "My Track";
                                                      sf.ui.proTools.menuClick({menuPath:['Track','Scroll to Track...']});
                                                      sf.ui.proTools.confirmationDialog.elementWaitFor();
                                                      sf.ui.proTools.confirmationDialog.textFields.first.elementSetTextFieldWithAreaValue ({
                                                          value: track,
                                                      });
                                                      sf.ui.proTools.confirmationDialog.buttons.whoseTitle.is("OK").first.elementClick();
                                                      

                                                      Scroll to Track will scroll to the top of the edit window.

                                                      1. KKevin Roache @Kevin_Roache
                                                          2022-01-11 19:33:17.422Z

                                                          Thank you for responding! But this brings up the dialogue window ... wonder if there is a way to just execute that right-click command "scroll into view" to make the process more efficient.

                                                          1. it should bring up the dialog and and click the ok button. Is it not doing that?
                                                            Be sure that to replace "My Track" with the desired track to scroll to

                                                            1. In reply toKevin_Roache:
                                                              KKevin Roache @Kevin_Roache
                                                                2022-01-12 00:05:40.717Z

                                                                It does bring up the dialogue window but I would like to skip over that step. I have found a Protools shortcut (shift+control+ click track) that justifies the track to the top. Currently, I am trying to figure out a way to add this command to the java script provided by Christian above.

                                          2. K
                                            In reply toKevin_Roache:
                                            Kevin Roache @Kevin_Roache
                                              2022-01-15 02:38:44.865Z2022-01-20 18:35:34.657Z

                                              I was able to add a shift+control to the command to make the folder justify to the top. So now, this command finds a vca/folder, spills it on an s1/s4/s6, and brings it to the top. You have to replace "My Folder" with the name of your own folder.

                                              const trackName = 'My Folder';
                                              
                                              const track = sf.ui.proTools.trackGetByName({ name: trackName }).track;
                                              track.trackSelect();
                                              track.trackScrollToView();
                                              track.titleButton.mouseClickElement();
                                              
                                              sf.ui.proTools.mainWindow.groups.whoseTitle.is("My Folder - Basic Folder Track ").first.popupButtons.whoseTitle.is("Track name\n\"My Folder\"").first.mouseClickElement({
                                                  isShift: true,
                                                  isControl: true,
                                              });
                                              
                                              1. PPhilip weinrobe @Philip_weinrobe
                                                  2022-01-20 17:27:20.126Z

                                                  i'm trying to implement this genius move. i replaced 'My Folder' on line 1 with my folder name.
                                                  do i need to replace any of the values in Line 8? seems like i would....please advise!

                                                  1. KKevin Roache @Kevin_Roache
                                                      2022-01-20 17:32:33.472Z

                                                      You would also have to replace "My Folder" on line 8 with your actual Folder name. This has all been working pretty solidly for me over the past week.

                                                      1. PPhilip weinrobe @Philip_weinrobe
                                                          2022-01-20 17:39:58.263Z

                                                          amazing. what about the 'Track name\b"BG" part of line 8?

                                                          1. PPhilip weinrobe @Philip_weinrobe
                                                              2022-01-20 17:40:42.486Z

                                                              oh sorry, and do i need to keep the ' - Basic Folder Track ' part?

                                                              could you maybe show me the exact code you use that works?

                                                              1. KKevin Roache @Kevin_Roache
                                                                  2022-01-20 18:37:46.495Z

                                                                  My apologies ... I could not see that "Track name\b"BG" item because it was off screen. I've edited the code above. This is the exact code I used (with the track names switched out, of course). It is a combo of code I was given by Christian and then some standard keyboard commands converted to script.

                                                                  1. KKevin Roache @Kevin_Roache
                                                                      2022-01-20 18:38:59.992Z

                                                                      The "Basic Folder Track" came from the conversion to script.

                                                                      1. PPhilip weinrobe @Philip_weinrobe
                                                                          2022-01-20 18:40:05.239Z

                                                                          so i should keep the basic folder text?

                                                            • P
                                                              In reply toKevin_Roache:
                                                              Philip weinrobe @Philip_weinrobe
                                                                2022-01-20 18:44:44.321Z
                                                                    const trackName = 'LV Mix';
                                                                
                                                                    const track = sf.ui.proTools.trackGetByName({ name: trackName }).track;
                                                                    track.trackSelect();
                                                                    track.trackScrollToView();
                                                                    track.titleButton.mouseClickElement();
                                                                
                                                                    sf.ui.proTools.mainWindow.groups.whoseTitle.is("LV Mix").first.popupButtons.whoseTitle.is("Track name\n\"LV Mix\"").first.mouseClickElement({
                                                                        isShift: true,
                                                                        isControl: true,
                                                                    });```
                                                                1. PPhilip weinrobe @Philip_weinrobe
                                                                    2022-01-20 18:45:01.154Z

                                                                    this is the code i'm using but it's throwing an error. does this look correct?

                                                                    1. KKevin Roache @Kevin_Roache
                                                                        2022-01-20 18:46:43.846Z

                                                                        It looks correct. Yes, try adding the Basic Folder Track text back in. Are you on an S6?

                                                                        1. PPhilip weinrobe @Philip_weinrobe
                                                                            2022-01-20 18:49:39.720Z

                                                                            i'm on an S3.
                                                                            is there a manual step i can create without SF to make sure what i'm trying to do will work?
                                                                            are you saying when you shift+opt+click on a Track Name on a Folder that it spills on your surface?

                                                                            1. PPhilip weinrobe @Philip_weinrobe
                                                                                2022-01-20 18:54:23.530Z

                                                                                ny track is not a basic folder track, it's a routing folder. i guess i wonder if this is necessary....or if i should modify it....

                                                                                1. In reply toPhilip_weinrobe:
                                                                                  KKevin Roache @Kevin_Roache
                                                                                    2022-01-20 18:59:21.835Z

                                                                                    Well ... I am on an S6 and I have selected a preference where if I click the track name of a folder or VCA, it spills. So this automation brings the track into view, clicks the name and then orients that track to the top of the edit window (I'd like to find a way to put it at the top first, but haven't figured that out yet). I believe in Eucontrol, there is also a preference to spill when clicked. Are you using that or Eucon?

                                                                                    Shift+opt+ click brings the track to the top.

                                                                                    Try replacing "Basic Folder Track" with "Routing Folder Track."

                                                                                    1. PPhilip weinrobe @Philip_weinrobe
                                                                                        2022-02-04 16:40:10.776Z

                                                                                        hi kevin
                                                                                        where do you find that preference for your S6? is it on the surface itself or in the Eucon settings?

                                                                              • L
                                                                                In reply toKevin_Roache:
                                                                                Les Cooper @Les_Cooper
                                                                                  2022-02-04 15:35:39.348Z

                                                                                  Thanks for making this Kevin.
                                                                                  I seem to be having some of the same issues as @Philip_weinrobe.
                                                                                  Philip, I'm running an S3 as well and I'm hoping to spill VCA's (not folder tracks).
                                                                                  Have you had any luck with this?

                                                                                  1. P
                                                                                    In reply toKevin_Roache:
                                                                                    Philip weinrobe @Philip_weinrobe
                                                                                      2022-02-04 15:41:40.111Z

                                                                                      no luck....
                                                                                      would be so great to figure out a way to do this...

                                                                                      1. LLes Cooper @Les_Cooper
                                                                                          2022-02-04 16:01:10.107Z

                                                                                          For sure.
                                                                                          I'll keep working on it as well.
                                                                                          I'll keep you posted

                                                                                        • P
                                                                                          In reply toKevin_Roache:
                                                                                          Philip weinrobe @Philip_weinrobe
                                                                                            2022-02-04 16:12:17.188Z

                                                                                            ok. i got the script to shift+ctrl click on a routing folder in my session.

                                                                                            this did attention the track to be the left most track on my S3.

                                                                                            however, it does not auto spill. i really am not sure auto spilling is possible since i'm pretty sure that functionality is inside the S3 surface. Pro Tools doesn't know that the folder is spilled or not...

                                                                                            pro tools does know to open the folder when the S3 says "spill"...but that seems to be it.

                                                                                            1. P
                                                                                              In reply toKevin_Roache:
                                                                                              Philip weinrobe @Philip_weinrobe
                                                                                                2022-02-04 16:45:00.310Z

                                                                                                new update
                                                                                                i got it so if i click the name of the track on the Control App (ipad/mac app) then the folder will auto-spill on the S3. however, i can't seem to find a way to do this by clicking the folder in Pro Tools

                                                                                                1. LLes Cooper @Les_Cooper
                                                                                                    2022-02-04 20:39:57.288Z

                                                                                                    Hey Phillip, can you share the script for where you're at and I'll keep working on it as well?
                                                                                                    Will this only work for a folder track or can I use it for my VCA tracks?

                                                                                                    1. PPhilip weinrobe @Philip_weinrobe
                                                                                                        2022-02-04 20:43:25.978Z
                                                                                                        const trackName = 'Bass Mix';
                                                                                                        
                                                                                                        const track = sf.ui.proTools.trackGetByName({ name: trackName }).track;
                                                                                                        track.trackSelect();
                                                                                                        track.trackScrollToView();
                                                                                                        track.titleButton.mouseClickElement();
                                                                                                        
                                                                                                        sf.ui.proTools.mainWindow.groups.whoseTitle.is("Bass Mix - Routing Folder Track ").first.popupButtons.whoseTitle.is("Track name\n\"Bass Mix\"").first.mouseClickElement({
                                                                                                            isShift: true,
                                                                                                            isControl: true,
                                                                                                        });
                                                                                                        
                                                                                                        1. LLes Cooper @Les_Cooper
                                                                                                            2022-02-04 21:00:58.450Z

                                                                                                            Hey Phillip,
                                                                                                            I think that I'm having some of the same confusion that you had earlier on with what to replace and what not to replace on line 8. I get hung up on the syntax.
                                                                                                            I've got this currently but it's not working

                                                                                                            const trackName = 'vDrums';
                                                                                                            
                                                                                                            const track = sf.ui.proTools.trackGetByName({ name: trackName }).track;
                                                                                                            track.trackSelect();
                                                                                                            track.trackScrollToView();
                                                                                                            track.titleButton.mouseClickElement();
                                                                                                            
                                                                                                            sf.ui.proTools.mainWindow.groups.whoseTitle.is("vDrums").first.popupButtons.whoseTitle.is("Track name\n\"vDrums\"").first.mouseClickElement({
                                                                                                                isShift: true,
                                                                                                                isControl: true,
                                                                                                            });
                                                                                                            
                                                                                                            1. PPhilip weinrobe @Philip_weinrobe
                                                                                                                2022-02-05 00:01:48.632Z

                                                                                                                in line 8 notice on mine it says 'Bass Mix - Routing Folder Track'

                                                                                                                in yours on the first instance of 'vDrums' on line 8 you should have 'vDrums - VCA Track'

                                                                                                                at least i think 'VCA Track' will work. you need to call the VCA there. may just be 'vDrums - VCA'
                                                                                                                try both

                                                                                                                your code should look like this:

                                                                                                                const trackName = 'vDrums';
                                                                                                                
                                                                                                                const track = sf.ui.proTools.trackGetByName({ name: trackName }).track;
                                                                                                                track.trackSelect();
                                                                                                                track.trackScrollToView();
                                                                                                                track.titleButton.mouseClickElement();
                                                                                                                
                                                                                                                sf.ui.proTools.mainWindow.groups.whoseTitle.is("vDrums - VCA Track").first.popupButtons.whoseTitle.is("Track name\n\"vDrums\"").first.mouseClickElement({
                                                                                                                    isShift: true,
                                                                                                                    isControl: true,
                                                                                                                });
                                                                                                                
                                                                                                                1. LLes Cooper @Les_Cooper
                                                                                                                    2022-02-05 02:48:11.748Z

                                                                                                                    Thanks Philip,
                                                                                                                    Thanks for trying to help! I tried your suggestion but for some reason, it's still failing (tried VCA as well as VCA Track)
                                                                                                                    For some reason when I paste the code, the sections in line 8 that show as green in yours show as red in mine and the script fails with the message "MouseClickAction requires valid UIElement: Line 8​​

                                                                                                                    1. PPhilip weinrobe @Philip_weinrobe
                                                                                                                        2022-02-05 02:52:02.226Z

                                                                                                                        try using my EXACT code and make a routing folder called 'Bass Mix' and see if it works to click that

                                                                                                            2. K
                                                                                                              In reply toKevin_Roache:
                                                                                                              Kevin Roache @Kevin_Roache
                                                                                                                2022-02-04 16:50:09.320Z

                                                                                                                Hi. Yes, this only works if the surface you allows spilling of a folder/vca when the track name is clicked. If that is an option on the S3 anywhere, it should work.

                                                                                                                1. PPhilip weinrobe @Philip_weinrobe
                                                                                                                    2022-02-04 20:44:07.053Z

                                                                                                                    kevin, possible to get a screenshot/picture of where you see that setting? just so i can confirm it's not something i have in my eucon system

                                                                                                                  • K
                                                                                                                    In reply toKevin_Roache:
                                                                                                                    Kevin Roache @Kevin_Roache
                                                                                                                      2022-02-04 20:46:08.633Z

                                                                                                                      Unfortunately I’m not at work now and won’t have access to an S6 until Monday. I will try then.

                                                                                                                      1. PPhilip weinrobe @Philip_weinrobe
                                                                                                                          2022-02-07 17:30:45.568Z

                                                                                                                          any chance you are at the s6 kevin? would love to know if i can make this happen :)

                                                                                                                        • K
                                                                                                                          In reply toKevin_Roache:
                                                                                                                          Kevin Roache @Kevin_Roache
                                                                                                                            2022-02-07 18:19:05.939Z

                                                                                                                            Here is the pref page from the S6. It allows you to attention clicked track and then auto spill the attentioned track.