Hide and Make Inactive not working.
Title
Hide and Make Inactive not working.
What do you expect to happen when you run the script/macro?
The Track Visibility script has no information in it. I used this script quite a lot, but now instead of hiding the selected track(s), it hides the selected track, but then makes visible all of the previously hidden tracks.
Are you seeing an error?
What happens when you run this script?
I select the track I want hidden. In conjunction with hiding the track, I also run the script to make the track Inactive. The script runs, makes the track inactive, hides the selected track, but then selects all of the other hidden/non-hidden tracks and makes everything visible.
How were you running this script?
I used a Stream Deck button
How important is this issue to you?
5
Details
{ "inputExpected": "The Track Visibility script has no information in it. I used this script quite a lot, but now instead of hiding the selected track(s), it hides the selected track, but then makes visible all of the previously hidden tracks.", "inputIsError": false, "inputWhatHappens": "I select the track I want hidden. In conjunction with hiding the track, I also run the script to make the track Inactive. The script runs, makes the track inactive, hides the selected track, but then selects all of the other hidden/non-hidden tracks and makes everything visible.", "inputHowRun": { "key": "-MpfwmPg-2Sb-HxHQAff", "title": "I used a Stream Deck button" }, "inputImportance": 5, "inputTitle": "Hide and Make Inactive not working." }
Source
if (!sf.ui.proTools.isRunning) throw `Pro Tools is not running`;
sf.ui.proTools.appActivateMainWindow();
sf.ui.proTools.trackListMenu({
menuItemName: "Hide Selected Tracks",
});
Links
User UID: XWbksG0UXMYCLSaHNNZ6iQHCF5P2
Feedback Key: sffeedback:XWbksG0UXMYCLSaHNNZ6iQHCF5P2:-O1q_ohPfhUNbN6xODCx
Feedback ZIP: dzSP+gxfY6bMzO5VulrESqbIb8dSIJfvqt1S1fUz5IiJ8GLw7xQYymd1E3CF1o/5ezC7fgzly7ruuN14uUI6V1cG9wTnAuH+4g1PzXhf9hoQVhDnUzHEfPy6wcCThWBzKmeumHMTytVmHnTn234Z0svCcXC+kPCR0m5teoJyCNE7LS2VTe829iTZmUGqe4TgLDmK5kmqFeNbgo1M1v2LMZdz/vrOI9jaPiIvJR5fVkDo1u3gy0+64F8+/cKgKb6tKPoWFeUDYOMTyxGmdAiApRKg9NuqT2xQ3+fmDoApS0fkD83E01SnrPM970tvEdO7f2aKMfrPh0j1PrwA5NV/xFrQfFd9V84r71U9ugARbGY=
- Chris Shaw @Chris_Shaw2024-07-15 20:50:18.162Z
Hmmm, the script you provided only hides the track so I'm not sure how you are going about making it inactive.
Could you provide the entire script(s)? - RIn reply toRhett_Samuel_Price⬆:Rhett Samuel Price @Rhett_Samuel_Price
Yep, exactly. The problem with the script is, it doesn't even do that. I just tried it on a current project that has 93 tracks. I was working on a single track with the other 92 hidden and inactive. When I ran the script to hide the currently selected track, it opened the tracks panel on the left, selected all of the inactive tracks, and made them visible, but still inactive. The selected track that I wanted hidden, stayed visible with all the inactive tracks. I run this script with the installed PTs button, not what you see in the video below. I used the script from SF to see if it would make any difference, and it didn't.
Here's a link to a video of what's happening: