Desired Workflow
- Show Only (Track type)
- Change Height of All Tracks
- Restore Previously Shown Tracks
Question
I'm trying to change the height of Folder tracks and VCA tracks in a session.
I can get it to show only one track type, and I can get it to restore the view.
I can also get the height to change from another script.
I can't figure out how to get it to just select the first track that is visible after showing a particular track type.
Command Info
ID: user:ckluac1pp00052l10sngbttht:ckap1a5ae0002tn10v5up9h13
Name: !!!Pro Tools_DECK MASTER!!!
Source
undefined
Links
User UID: cLPQQlgA6SX7DSnymqYDcm58oeu1
Feedback Key: sffeedback:cLPQQlgA6SX7DSnymqYDcm58oeu1:-MUxnOCW8jmlNSYvc3L2
- Christian Scheuer @chrscheuer2021-03-04 15:53:07.896Z
Hi David,
Can we get you to share your script?
Christian Scheuer @chrscheuer2021-03-04 15:53:18.405Z
Please see this link for how to best get help with SoundFlow.
- DIn reply toDavid_Stagl⬆:David Stagl @David_Stagl
quoted text
//Show Only Folder Tracks
sf.ui.proTools.mainWindow.buttons.whoseTitle.is("Track List pop-up").first.popupMenuSelect({
menuPath: ["Show Only","Folders"],
});//Select Track
//Change Size
var size = 'small';var f = sf.ui.proTools.selectedTrack.frame;
var popupMenu = sf.ui.proTools.selectedTrack.popupMenuOpenFromElement({
relativePosition: { x: f.w - 10, y: 5 },
isOption: true,
}).popupMenu;
popupMenu.menuClickPopupMenu({
menuPath: [size]
});//Restore Track View
sf.ui.proTools.mainWindow.buttons.whoseTitle.is("Track List pop-up").first.popupMenuSelect({
menuPath: ["Restore Previously Shown Tracks"],
});Raphael Sepulveda @raphaelsepulveda2021-03-04 16:29:11.875Z
Hello David!
Just add the following lines after showing only the folder tracks and you should be good!
//Invalidate tracks sf.ui.proTools.mainWindow.invalidate(); //Select Track sf.ui.proTools.visibleTracks.trackHeaders[0].trackSelect();
- DDavid Stagl @David_Stagl
That did it! Thank you so much!