No internet connection
  1. Home
  2. How to

Create memory location for every clip cut and rename memory location to the clips name

By Gaston Ibarroule @Gaston_Ibarroule
    2024-05-10 13:11:10.103Z

    Hello everyone,

    I'm trying to find some script to be able to select a wholw track of clips, where in every cut I'd like to create a memory location that's named after el following clip. A way to have memory locations for each scene change in a film. Can someone point me in the direction of something like this?

    Thank you!

    • 9 replies
    1. O

      Convert Clip Groups to Markers #post-3 take this for a spin see if it works for ya.

      1. Ahhh, beat me to it

        1. GGaston Ibarroule @Gaston_Ibarroule
            2024-05-13 08:31:28.246Z

            Thank you very much! I tried the one underneath because you mentioned it was cleaner, but thank you either ways!

          • @Gaston_Ibarroule, something simple like this should do the trick:

            function createMarkerPerSelectedClip() {
                sf.app.proTools.getSelectedClipInfo()
                    .clips.forEach(clip => {
                        sf.app.proTools.createMemoryLocation({
                            name: clip.clipName,
                            startTime: String(clip.startTime),
                        });
                    });
            }
            
            createMarkerPerSelectedClip();
            
            1. Yours is cleaner though.

              1. GGaston Ibarroule @Gaston_Ibarroule
                  2024-05-13 08:30:57.234Z

                  Beautiful! It works perfectly! Thank you so much!

                  1. CChava Solís @Chava_Solis
                      2024-08-12 21:57:25.502Z

                      What shoul I add to the script if I wanted to add the word 'missing' to the name of the memory location?
                      "clip name + missing"
                      Can you help me, please?

                      1. To do that, modify Line 5 of the script above to this:

                        name: clip.clipName + " missing",
                        
                        1. CChava Solís @Chava_Solis
                            2024-08-13 02:46:58.011Z

                            I knew it was going to be a simple thing. Thank you so much!