No internet connection
  1. Home
  2. Support

Change Height of a Particular Track Type

By David Stagl @David_Stagl
    2021-03-04 15:14:04.638Z

    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

    Feedback ZIP

    Solved in post #5, click to view
    • 5 replies
    1. Hi David,

      Can we get you to share your script?

      1. Please see this link for how to best get help with SoundFlow.

      2. D
        In reply toDavid_Stagl:
        David Stagl @David_Stagl
          2021-03-04 16:22:08.226Z

          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"],
          });

          1. 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();
            
            Reply2 LikesSolution
            1. DDavid Stagl @David_Stagl
                2021-03-04 16:51:33.207Z

                That did it! Thank you so much!