No internet connection
  1. Home
  2. How to

Set Selection in Samples Pro Tools 23 doesn't work

By Peter Hauser @Peter_Hauser
    2024-01-23 19:22:44.305Z

    Hey Guys,

    i tried the Set Selection in Samples macro and i get Errors with the Message: couldn't set Selection.

    1. In PT Main counter is set to Samples

    2. I Select a Clip

    3. Macro: Set Selection in Samples
      Main Counter: 0
      Selection Start: 0
      Selection End: 57
      Selection Length: 57

      Edit Macro: Cut

      But it doesn't work ,....

    Thx in advance

    Peter

    • 2 replies
    1. Hey @Peter_Hauser, it's the 0 values in the other fields that are tripping the command up.
      In the macro, you just need to provide the value to the Selection Length property and leave everything else blank. Try this with a fresh instance of the macro instead of editing the one you have since that will still result in unwanted results.

      Here's a script version of what you described above—sets Selection Length to 57 samples and cuts:

      sf.ui.proTools.appActivateMainWindow();
      
      sf.ui.proTools.selectionSetInSamples({
          selectionLength: 57,
      });
      
      sf.ui.proTools.menuClick({ menuPath: ["Edit", "Cut"] });
      
      1. P
        In reply toPeter_Hauser:
        Peter Hauser @Peter_Hauser
          2024-01-23 21:18:46.498Z

          ty now it works :D

          1. Progress
          2. P@Peter_Hauser closed this topic 2024-01-23 21:18:53.941Z.