No internet connection
  1. Home
  2. How to

How to fold/unfold folder tracks

By olafnoise @olafnoise
    2020-04-04 09:50:13.321Z

    Hi, I know that is brand new, but is there a method to fold unfold folder tracks by name instead of selection then Command F?
    That would be very helpful to organise display in very large sessions.
    thanks in advance

    Solved in post #2, click to view
    • 8 replies
    1. Hi Olaf!

      Great idea - you can do it with this script:

      /**
       * @param {AxPtTrackHeader} track Track to toggle
       */
      function toggleFolderOpen(track) {
          track.childrenByRole("AXDisclosureTriangle").whoseTitle.contains('Folder').first.elementClick();
      }
      
      toggleFolderOpen(sf.ui.proTools.trackGetByName({ name: 'DX' }).track);
      
      Reply2 LikesSolution
      1. Oolafnoise @olafnoise
          2020-04-04 10:37:19.540Z

          Works great!!
          a good improvement to the script would be to be able to select the height of the track when unfolding (mini, small etc ...)
          thanks again

          1. In reply tochrscheuer:
            BBrian Sloss @Bsloss
              2020-05-26 05:10:18.993Z

              If the folder tracks are reduced to their minimum height, this macro does not work. It only seems to work if they are large enough to where the little folder icon is displayed. Any solutions around this issue? Thank you in advance.

              -Brian

              1. Hi Brian - I suppose a workaround for that situation could be to select the folder track via the trackSelect action and then simulate a shift+f keyboard event - but it wouldn't work unless the folder track got selected first.. So not sure if that workaround would be enough in your case.

            • O
              In reply toolafnoise:
              olafnoise @olafnoise
                2020-04-04 10:00:04.348Z

                Hi Christian
                wow!! thanks for the very fast reply!!!

                1. John Costello @John_Costello
                    2020-11-19 19:46:26.458Z

                    Heya Christian!

                    I am trying to get this script to work for me but I don't know what to change inside the script in order to have it select a track by name and then toggle the folder open/close in the mix window. As always thanks for your help!

                    1. John Costello @John_Costello
                        2020-11-19 20:32:36.795Z
                        1. Hi John - please open a new question for this as this one is already marked closed/solved. It's better to open a new question and link to the old one.