No internet connection
  1. Home
  2. How to

How to use Sync Clips To Marker

By Martin Staeheli @Martin_Staeheli
    2020-10-14 09:24:15.771Z

    Just a quick question: the "sync clips to marker" script doesn't seem to work. What's that supposed to do? It sounds like syncing clips up to markers by its syncpoints?

    • 8 replies
    1. If you're talking about the built-in function, I honestly don't fully recall what it does.

      You can take a look at this script instead perhaps:

      
      function processBatch(markerStart, markerEnd) {
          var nextMarker = markerStart;
      
          function processClip() {
              sf.ui.proTools.getMenuItem('Edit', 'Copy').elementClick();
              sf.ui.proTools.memoryLocationsGoto({ memoryLocationNumber: nextMarker });
              sf.ui.proTools.getMenuItem('Edit', 'Paste').elementClick();
      
              nextMarker++;
              if (nextMarker > markerEnd) throw 'DONE';
          }
      
          sf.ui.proTools.clipDoForEachSelectedClip({
              action: processClip
          });
      
          return nextMarker;
      }
      
      function main() {
          var markerStart = Number(prompt('Start by marker?'));
          var markerEnd = Number(prompt('End by marker?'));
          var nextMarker = markerStart;
      
          try {
              while (nextMarker <= markerEnd) {
                  nextMarker = processBatch(nextMarker, markerEnd);
              }
          } catch (err) {
              if (err + '' === 'DONE') return;
              throw err;
          }
      }
      
      main();
      

      You should start with a selection of a number of clips.
      When you run the script, it will ask you for the number of the first marker and the last marker you want to process.

      The script will now loop through each of your originally selected clips and paste them at each of the markers.

      1. MMartin Staeheli @Martin_Staeheli
          2020-10-14 17:49:04.676Z

          Hi Christian

          Thanks for your inputs. That script definitely looks interesting. I will try that.

          Best regards,
          Martin

          1. In reply tochrscheuer:
            JJanne Saksa @Janne_Saksa
              2022-06-09 15:31:37.488Z

              Hi Christian,

              This script looks quite close to the one I'd need. The script above pastes a clip to the next marker, but not to the ones that follow that one. I'd like to paste one audio clip to all markers (hundreds often). Could this kind of scripts be made with SoundFlow?

              There's also a script that separates a clip at memory locations, which is also quite close to what I'm looking for. If I use that script, I'd like to replace the files (or regions/clips actually) with one short clip. Pro Tools' "Replace clip" doesn't allow me to do that - it only replaces files that have the same id or whatever.

              Best regards,
              Janne

              1. @Janne_Saksa Check out my package advanced memory locations. I have functionality in there to paste whatever audio is in your clipboard to all memory locations of a specific user defined name. I think that's what you're looking for?

                Bests,
                Owen

                1. JJanne Saksa @Janne_Saksa
                    2022-06-13 07:03:27.833Z

                    Thanks! Looks like it does what I'm after, but it seems it pastes for example to Location 1 and then jumps to Location 10 and pastes until Location 20. I have sessions with hundreds of memory locations. At some point the script doesn't work (paste anything) any more. Is there a way to paste a clip to all locations regardless of the name?

                    Thanks,
                    Janne

                    1. I'm not sure! I imagine someone could whip something so global up (not I though). But yeah this one is designed to paste to a specific named location. It's created with FX editors in mind so a repeated FX throughout a show can be quickly blasted across the timeline. Are you creating the memory locations or somebody else? Could you make them all identically named next time or there's a method to the madness?

                      Bests,
                      Owen

                2. In reply tochrscheuer:
                  DDave Perry @Dave_Perry
                    2024-04-05 14:54:24.500Z

                    This seems to be a good starting point but I found it duplicated the same clip on some occasions when testing. Do you have any more tips?

                  • J
                    In reply toMartin_Staeheli:
                    Jack Byrne @Jack_Byrne
                      2023-03-13 22:06:33.739Z

                      I'm just replying here to remind me to come back to @Owen_Granich_Young's package, as this looks ideal for dropping pickups for audiobooks from what I can read, just don't have time to look now!