Hi @Kitch
I'm using the Toggle All command in Set Views: Edit Window - Header, primarily to toggle the sidebar (Track List) on the left.
Couldn't find a command to do this on mix window. Does it exist or is it doable?
- Kitch Membery @Kitch2022-01-18 23:14:55.802Z
You probably don't need to use the "Set Views: Edit Window" template for toggling the Track list. You can do that simply by using a Click Menu Item macro like this;
What is the functionality you are looking for with the Mix window? Do you just want to bring the Mix window to the front?
Brett Ryan Stewart @Brett_Ryan_Stewart
Hey @Kitch
I'm basically trying to toggle this as show / hide on the left screen like here:
https://www.dropbox.com/s/15fpg6l4t8d0q9o/Screen Recording 2022-01-18 at 5.18.12 PM.mov?dl=0- In reply toBrett_Ryan_Stewart⬆:
Kitch Membery @Kitch2022-01-18 23:30:58.399Z
Here is the code from the converted Macro for toggling the Tracks List;
sf.ui.proTools.menuClick({ menuPath: ["View","Other Displays","Track List"], });
- In reply toBrett_Ryan_Stewart⬆:
Kitch Membery @Kitch2022-01-18 23:35:37.065Z
Ohhh I misunderstood. Stand by!
- In reply toBrett_Ryan_Stewart⬆:
Kitch Membery @Kitch2022-01-18 23:40:45.610Z2022-01-19 00:02:15.270Z
Sorry for the confusion. I thought you were trying to do two separate things.
The following script will click the Track List Show hide button in the mix window :-)
sf.ui.proTools.mixWindow.buttons.whoseTitle.is("Track List Show/Hide").first.elementClick();
Brett Ryan Stewart @Brett_Ryan_Stewart
Thanks Kitch! Is this the full code? I pasted it in a script and it's not doing anything :-)
Kitch Membery @Kitch2022-01-19 00:03:23.401Z
I accidentally typed a backslash at the end of the code. Remove that and try again. I've updated the code above.
Brett Ryan Stewart @Brett_Ryan_Stewart
@Kitch now it's throwing the error "can't read property 'buttons" of undefined
Kitch Membery @Kitch2022-01-19 00:38:53.252Z
Are you sure you are triggering the correct command? All this script is doing is clicking a ui element.
Is the Mix window open?
sf.ui.proTools.mixWindow.buttons.whoseTitle.is("Track List Show/Hide").first.elementClick();
Double check and if that does not work maybe try a restarting of SoundFlow.
Brett Ryan Stewart @Brett_Ryan_Stewart
@Kitch Just tried restarting. I'm wondering if we're talking about the same thing?
Here's what the macro looks like from My Presets in your package (but i just want to be able to do this in Mix window:Kitch Membery @Kitch2022-01-19 00:53:45.385Z
I'm quite confused by your last post in this thread. Can you clarify what you are trying to achieve from the macro and in point form describe the steps that you would take to achieve the workflow manually.
Thanks in advance.
Brett Ryan Stewart @Brett_Ryan_Stewart
Sorry for the confusion!
Did you see the SR I posted?
Essentially, I used your Set View: Edit Window Header command and refined it to only show and hide the side bar of the Edit window where the Tracks and Groups are displayed. So I set Track List to Toggle in that action.All I'm hoping to do is exact same thing, but in the Mix Window.
Kitch Membery @Kitch2022-01-19 01:40:24.942Z
Ok all you need to do to toggle the visibility of the "Track List" in the Mix window is;
- Create a new script.
- Copy the following code;
sf.ui.proTools.mixWindow.buttons.whoseTitle.is("Track List Show/Hide").first.elementClick();
- Paste the code into the newly created script.
- Assign a keyboard shortcut to the script. (or add it to a deck if that is how you are triggering the command)
And that's it. No command template is needed.
Let me know if that works for you.
Brett Ryan Stewart @Brett_Ryan_Stewart
@Kitch so sorry this is such a pain in the butt. This is what I tried earlier but it just keeps throwing that error and not toggling.
Here's a new SR of me following your most recent instructions. Maybe this will help?
Thanks for your patience!
https://www.dropbox.com/s/zac4t8kcvhfzzou/Screen Recording 2022-01-18 at 7.52.37 PM.mov?dl=0Kitch Membery @Kitch2022-01-19 02:09:19.167Z
No worries at all mate :-) Happy to help.
Your Screen Recording was very helpful. And it looks like you are doing everything correctly. I see where the problem is now.
Stand by.
- In reply toBrett_Ryan_Stewart⬆:
Kitch Membery @Kitch2022-01-19 02:13:33.945Z
Try this @Brett_Ryan_Stewart.
sf.ui.proTools.windows.whoseTitle.startsWith("Mix: ").first.buttons.whoseTitle.is("Track List Show/Hide").first.elementClick();
It looks like I was using an unsupported Path.
Fingers crossed this works.
Brett Ryan Stewart @Brett_Ryan_Stewart
That did it! Thanks for the diligence on this one @Kitch !!