Selecting a VCA or Folder to spill on S6.
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.
Kitch Membery @Kitch2021-12-13 22:07:01.587ZHi @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!
- KIn reply toKevin_Roache⬆:Kevin Roache @Kevin_Roache
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.
Kitch Membery @Kitch2021-12-13 22:27:40.303ZI 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!
- In reply toKevin_Roache⬆:
Kitch Membery @Kitch2021-12-13 22:30:40.842ZLet 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). :-)
- KKevin Roache @Kevin_Roache
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?
Christian Scheuer @chrscheuer2021-12-13 22:47:30.071ZHm 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).
Christian Scheuer @chrscheuer2021-12-13 22:49:04.528ZI'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.
- In reply tochrscheuer⬆:KKevin Roache @Kevin_Roache
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.745ZI 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. :-)
Christian Scheuer @chrscheuer2021-12-13 22:49:57.338Ztrack 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.
Kitch Membery @Kitch2021-12-13 22:52:39.258ZThanks, Christian, Good to know. :-)
- KIn reply toKevin_Roache⬆:Kevin Roache @Kevin_Roache
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?
Christian Scheuer @chrscheuer2021-12-14 00:58:13.005ZTo 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.
- KKevin Roache @Kevin_Roache
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?
Christian Scheuer @chrscheuer2021-12-14 16:29:44.559ZThat'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).
- KKevin Roache @Kevin_Roache
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.
Christian Scheuer @chrscheuer2021-12-16 17:05:55.573ZGotcha, 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).
- KKevin Roache @Kevin_Roache
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.
Christian Scheuer @chrscheuer2021-12-16 17:58:03.665ZNot 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.
- KKevin Roache @Kevin_Roache
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.
Chris Shaw @Chris_Shaw2022-01-11 18:39:25.274ZInstead of
trackScrollToViewyou 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.
- KKevin Roache @Kevin_Roache
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.
Chris Shaw @Chris_Shaw2022-01-11 20:24:47.282Zit 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- In reply toKevin_Roache⬆:KKevin Roache @Kevin_Roache
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.
- KIn reply toKevin_Roache⬆:Kevin Roache @Kevin_Roache
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, });- PPhilip weinrobe @Philip_weinrobe
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!- KKevin Roache @Kevin_Roache
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.
- PPhilip weinrobe @Philip_weinrobe
amazing. what about the 'Track name\b"BG" part of line 8?
- PPhilip weinrobe @Philip_weinrobe
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?
- KKevin Roache @Kevin_Roache
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.
- KKevin Roache @Kevin_Roache
The "Basic Folder Track" came from the conversion to script.
- PPhilip weinrobe @Philip_weinrobe
so i should keep the basic folder text?
- PIn reply toKevin_Roache⬆:Philip weinrobe @Philip_weinrobe
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, });```- PPhilip weinrobe @Philip_weinrobe
this is the code i'm using but it's throwing an error. does this look correct?
- KKevin Roache @Kevin_Roache
It looks correct. Yes, try adding the Basic Folder Track text back in. Are you on an S6?
- PPhilip weinrobe @Philip_weinrobe
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?- PPhilip weinrobe @Philip_weinrobe
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....
- In reply toPhilip_weinrobe⬆:KKevin Roache @Kevin_Roache
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."
- PPhilip weinrobe @Philip_weinrobe
hi kevin
where do you find that preference for your S6? is it on the surface itself or in the Eucon settings?
- LIn reply toKevin_Roache⬆:Les Cooper @Les_Cooper
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? - PIn reply toKevin_Roache⬆:Philip weinrobe @Philip_weinrobe
no luck....
would be so great to figure out a way to do this...- LLes Cooper @Les_Cooper
For sure.
I'll keep working on it as well.
I'll keep you posted
- PIn reply toKevin_Roache⬆:Philip weinrobe @Philip_weinrobe
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.
- PIn reply toKevin_Roache⬆:Philip weinrobe @Philip_weinrobe
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- LLes Cooper @Les_Cooper
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?- PPhilip weinrobe @Philip_weinrobe
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, });- LLes Cooper @Les_Cooper
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 workingconst 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, });- PPhilip weinrobe @Philip_weinrobe
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 bothyour 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, });- LLes Cooper @Les_Cooper
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- PPhilip weinrobe @Philip_weinrobe
try using my EXACT code and make a routing folder called 'Bass Mix' and see if it works to click that
- KIn reply toKevin_Roache⬆:Kevin Roache @Kevin_Roache
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.
- PPhilip weinrobe @Philip_weinrobe
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
- KIn reply toKevin_Roache⬆:Kevin Roache @Kevin_Roache
Unfortunately I’m not at work now and won’t have access to an S6 until Monday. I will try then.
- PPhilip weinrobe @Philip_weinrobe
any chance you are at the s6 kevin? would love to know if i can make this happen :)
- KIn reply toKevin_Roache⬆:Kevin Roache @Kevin_Roache
Here is the pref page from the S6. It allows you to attention clicked track and then auto spill the attentioned track.
