No internet connection
  1. Home
  2. Ideas

Convert Clip Groups to Markers

By Mac Smith @Mac_Smith
    2020-10-03 00:26:52.987Z

    Has anyone developed a script to convert clip groups into markers? I love the search marker functionality in SoundFlow, but it's more stable to initially make clip groups for a project because of conforms. So I'd like to have the ability to select one track, or multiple tracks with clip groups and have it take the clip name and copy it to a marker/memory location. I don't need the length or end point converted; just the start point and name. Once those are converted then I can utilize the "search marker" feature as I'm sound editing/designing.

    • 6 replies
    1. J
      Jonas Orantin @Jonas_Orantin
        2024-04-17 09:19:42.852Z

        Hi everyone,

        I have exactly the same request.
        I know @samuel_henriques managed to do the opposite (Rename clips by markers in Pro Tools) but is it possible to create and rename markers from a "note track" with the names of the clips groups ?

        1. OOwen Granich-Young @Owen_Granich_Young
            2024-04-17 16:00:02.158Z2024-05-10 16:53:27.702Z

            SDK IS SO COOl! Needs to be on PT 2022.12 or later for this to work but man it works fast. You can get more detailed with colors etc but for now, select any number of clips on any number of tracks and press the button. Boom. It ignores all Fade in's Out's and Crossfades and drops a marker for ever clip name.

            let currentClip = sf.app.proTools.getSelectedClipInfo();
            let filteredClips = currentClip.Clips.filter(clip => !clip.ClipName.includes('(fade') && !clip.ClipName.includes('(cross fade'));
            let clipsArray = filteredClips.map(({ ClipName, StartTime }) => ({ ClipName, StartTime }));
            
            clipsArray.forEach(({ ClipName, StartTime }) => {
                sf.app.proTools.createMemoryLocation({
                    startTime: StartTime.toString(),
                    name: ClipName,
                    colorIndex : 1 ///or any number you want
                });
            });
            
            1. JJonas Orantin @Jonas_Orantin
                2024-04-17 16:38:56.804Z

                Thank you so much @Owen_Granich_Young !!! Is there a simple way to choose the color of my markers ? With your script, every marker has a different color...
                Thank you again !

                1. OOwen Granich-Young @Owen_Granich_Young
                    2024-04-17 17:19:35.203Z2024-04-17 17:27:31.994Z

                    Never mind sorry guys!

                    just go like this

                    clipsArray.forEach(({ ClipName, StartTime }) => {
                        sf.app.proTools.createMemoryLocation({
                            startTime: StartTime.toString(),
                            name: ClipName,
                    colorIndex : 1 ///or any number you want
                        });
                    });
                    
                    1. JJonas Orantin @Jonas_Orantin
                        2024-04-17 18:03:40.497Z

                        Thank you so much ! Just for my knowledge, I tried to find a way to choose the color by myself by searching this "colorIndex" parameter. How can I find online these type of simple commands ? I tried to look for the properties of sf.app.proTools.createMemoryLocation, but I didn't manage ti find anything interesting...
                        Thank's again !

                2. J
                  In reply toMac_Smith:
                  Jonas Orantin @Jonas_Orantin
                    2025-03-05 18:40:47.114Z

                    Hi everyone, hi @Owen_Granich_Young,

                    I've been using this "convert Clip Groups to Markers" function so many times, but today I got a new demand for you. I'm sure it's too easy for you all...
                    Is there a way to do the exact same thing from a video track with multiple clips. Typically I need it to work on a cut track (which is an AAF VIDEO Track from Media Composer imported as a satellite track).

                    It would be so great.

                    Thank's !