No internet connection
  1. Home
  2. How to

Macro to select between 2 markers

By Joe Kearns @Joe_Kearns
    2022-08-25 15:19:42.404Z

    Hey,

    Im looking to make a simple macro that can select the start and end markers of a song. I always number the start marker with 100 and the end marker with 200. To do this manually you press the commands [.100.] and then [.200.] on the number pad but whilst holding shift.

    Any ideas how to make a macro/script that can do this? Any help greatly appreciated.

    Thanks!
    Joe.

    • 4 replies
    1. Chris Shaw @Chris_Shaw2022-08-25 18:28:31.203Z2022-08-25 21:24:36.245Z

      This should do it.
      Just change the values for the memLocation constants to the memory locations you want to use:

      const memLocation1 =  100
      const memLocation2 =  200
      
      sf.ui.proTools.memoryLocationsGoto({
          memoryLocationNumber: memLocation1
      })
      sf.ui.proTools.memoryLocationsGoto({
          memoryLocationNumber: memLocation2,
          extendSelection:true
      })
      
      1. @Kitch - something like this should be part of the official PT package

        1. Ben Rubin @Ben_Rubin
            2022-08-25 22:27:50.579Z

            there is "select between markers", "extend to previous/next marker" in the official pro tools package under "memory locations". less specific than what the OP is looking for. I have a macro that does "select between markers" and then invokes the edge tool. handy for changing sections of automation.

        2. J
          In reply toJoe_Kearns:
          Joe Kearns @Joe_Kearns
            2022-08-25 18:47:55.592Z

            Amazing!

            thanks so much Chris,

            works perfect!