No internet connection
  1. Home
  2. How to

Command for selecting a region

By Marc Bazerman @Marc_Bazerman
    2021-10-25 15:04:13.550Z

    Hi All,
    I'm working on a new macro where after I split a audio file I want it to select the first region or the region to the left of the split. Is there a command for this?

    Thanks, Marc

    Solved in post #2, click to view
    • 6 replies
    1. O
      Owen Granich-Young @Owen_Granich_Young
        2021-10-25 15:57:22.237Z2021-10-25 17:04:02.076Z

        I've personally only found SHIFT+L key command, which is the inverse of Shift+Tab. However Key commands are not as rombust as other options so somebody else might be able to help you with a better option. And I'll certainly be watching here too.

        Bests,
        Owen

        ReplySolution
        1. M
          In reply toMarc_Bazerman:
          Marc Bazerman @Marc_Bazerman
            2021-10-25 15:59:09.171Z

            Thanks Owen, I'll give it a try if no other suggestions come up.

            1. A
              In reply toMarc_Bazerman:
              Andrew Sherman @Andrew_Sherman
                2021-10-25 16:40:46.638Z

                I'm not sure if this is helpful, but Samuel came up with a good solution for something similar; you may be able to edit this as a starting point.
                How to select all clips after the current selected clip on a specific track

                1. In reply toMarc_Bazerman:

                  Hi Marc,

                  You can use selectionGet and selectionSet (...InSamples) actions to restore and recall selections (the InSamples versions operate sample accurately). If you do a search for this you should see some examples :)

                  1. For example, you could use this to get the selection before you make the split, then get the selection (position) after the split, and then combine the selection start of the original selection with the selection end of the new position. That would be sample accurate (if you use selectionGetInSamples and selectionSetInSamples, respectively) and would be stable.

                    1. MMarc Bazerman @Marc_Bazerman
                        2021-10-26 17:34:33.101Z

                        Thanks Christian,
                        I have it working with a combination of other 2 suggestions. If that starts giving me problems, I'll explore this as well.
                        Thanks everyone!