No internet connection
  1. Home
  2. How to

How To Programme Macros that use track Menu Options in Edit Window

By Alex Morgan @Alex_Morgan
    2020-09-08 13:43:07.420Z

    Hi there - love SF ... been writing some macros mostly using the 'click menu item' functionality.

    I want to create a Pro Tools shortcut for showing automation lanes drop down (which you access from clicking the little button on bottom left of track in edit window)

    Does nayone know how this could be acheived.

    and seondly how to create a macro from the options one sees when clicking the track dropdown menu (not he one in the top menu bar) ie track name then say: 'modulation wheel' so that midi data is revealed?

    many thanks!

    Alex

    Solved in post #2, click to view
    • 7 replies
    1. Hi Alex,

      You can use the "Select Track Display" action for this:

      Here that same macro is as code:

      sf.ui.proTools.selectedTrack.trackDisplaySelect({
          displayPath: ["controllers","mod wheel (1)"],
      });
      
      ReplySolution
      1. AAlex Morgan @Alex_Morgan
          2020-09-08 16:42:39.122Z

          OH THAT'S AMAZING

          will that work also with a different signal path

          • eg // controllers ... sustain

          OR velocity

          1. Yes, you just need to be careful to put in the name of the menu item exactly as it's spelled in Pro Tools :)

            1. AAlex Morgan @Alex_Morgan
                2020-09-08 19:33:09.115Z

                got it working - will programme a pack ...

                is there a way though to write a macro that imitates clicking the small box that reveals automation lanes? as that way u could see the lanes more than 1 at a time ... it is the small box on the bottom left of each track ... ?

                1. Hi Alex,

                  I think you should be able to find some inspiration on automation lanes in this thread, which has a lot of examples on how to automate them:
                  https://forum.soundflow.org/-2736/toggle-showhide-automation-lanes-sends-volume

                  Feel free to open a new thread if you have a separate issue/request that isn't covered (better than augmenting to the closed thread since I won't see replies to a closed thread).

                  1. AAlex Morgan @Alex_Morgan
                      2020-09-11 19:01:41.472Z

                      thanks C - this is. greta thread however when i tried to paste the script it did not wrok is there a video on srcipt editing ?

                      1. Making scripts in SF takes a long time to learn :) The best way to get started is trying to make macros and then asking directly for what you need help with here in the forum.
                        If there's something that isn't working for you, then please click the "Help" button in your script, and fill out the questions on what you want the script to do.