No internet connection
  1. Home
  2. How to

How to select between two markers?

This script shows how to make a selection between two markers based on their memory location number.

Solved in post #2, click to view
  • 9 replies
  1. function selectBetween(no1, no2)
    {
    
        sf.ui.proTools.memoryLocationsGoto({
            memoryLocationNumber: no1,
            restoreWindowOpenState: true,
            useKeyboard: true,
        });
    
        sf.ui.proTools.memoryLocationsGoto({
            extendSelection: true,
            memoryLocationNumber: no2,
            restoreWindowOpenState: true,
            useKeyboard: true,
        });
    
    }
    
    selectBetween(1, 4);
    
    Reply1 LikeSolution
    1. Mike Wax @mikewax
        2020-10-10 23:52:06.439Z

        Is there any way to make this work by using marker NAMES instead of number? I always use the same names for my markers, but sometimes they're not in the same position.

        I tried changing the selectBetween(1, 4) to selectBetween("START", "END") but it said it was invalid.

        1. Hi Mike,

          Please open a new topic for this, otherwise your question may get lost as this one is marked as resolved :)

          1. Mike Wax @mikewax
              2020-10-11 22:25:07.181Z

              Will do Thank you!

        2. O
          In reply tochrscheuer:
          olafnoise @olafnoise
            2020-01-09 11:54:24.914Z

            could it be possible to make a selection between previous and next marker at the cursor position?
            this would be very helpful to select a shot to spot an ambience for instance
            thanks

            1. Hi @olafnoise - yes this is already a built in function :)
              Ctrl+Shift+M with default SoundFlow Triggers - the command is called "Select Between Markers" and is in "Pro Tools -> Memory Locations"

              1. I have a script that trims a background to between the markers and creates fades on both sides plus opens up the EQ and output window on the track so one can set a preliminary volume and pan.

                1. Oolafnoise @olafnoise
                    2020-01-10 11:13:39.732Z

                    great!
                    is this script in a package yet?
                    thanks

                  • In reply tochrscheuer:
                    Oolafnoise @olafnoise
                      2020-01-10 11:10:59.352Z

                      great .. thank you