No internet connection
  1. Home
  2. How to

Go To Next Memory Location By Name

Is there a way to create a script that would go to the next memory location by name? This specific use case would be, for example, stepping through all the memory locations named, for instance, "flash", skipping any memory locations not named "flash". So...find and go to the first instance of "flash". On next trigger, go to the next instance of "flash". Repeat until there are no more found.

  • 20 replies

There are 20 replies. Estimated reading time: 8 minutes

  1. samuel henriques @samuel_henriques
      2021-03-25 21:45:25.338Z

      Hello @sbiss,

      there might be some inspiration here:
      Identical Marker Navigation

      1. Wow, this looks great! I'll have to spend some time figuring out how to piece this together. Would it be possible to post the finished script?

        1. samuel henriques @samuel_henriques
            2021-03-25 23:14:09.298Z

            Yes, it turned out pretty cool.
            They all work, but the last two are best, I think.
            One goes to the next marker and the other goes to the previous. When you press command+script you will get a prompt asking the word in marker list you want it to navigate to.

            If you use it with a keyboard shortcut, remember to use as trigger the key/s you want and another trigger with same key/s and command.

            Let me know if you get stuck.

            1. Not sure I understand this: If you use it with a keyboard shortcut, remember to use as trigger the key/s you want and another trigger with same key/s and command.

              When I trigger the command it asks for the marker name, I enter it and hit OK, but nothing happens. I tried restarting Soundflow and Pro Tools and same result.

              1. samuel henriques @samuel_henriques
                  2021-03-26 00:28:55.340Z

                  Now that you restarted, when you run the script it will ask again, type a word you want to search on the marker list. Press ok. Now run script again and it should go to a marker with the word in its name.

                  If you want to look for a new word press command+script and the window will show again.

                  1. As I mentioned, I had restarted already and tried running the script multiple times. Each time it asks "Please enter the marker name". I type the exact name of the marker I want to go to, press OK, but the curser does not move.

                    Also, can you explain what you are saying here?
                    If you use it with a keyboard shortcut, remember to use as trigger the key/s you want and another trigger with same key/s and command.

                    I also don't understand what you mean by command+script. The scrip itself is not a trigger. Can you explain what you mean for me to do when you say that? I assigned a keyboard trigger to run the script and that seems to work since I see the prompt asking for the marker name. But then the script fails.

                    1. Clearly I am doing something wrong!

                      1. samuel henriques @samuel_henriques
                          2021-03-26 00:57:08.925Z

                          Ok ok, One thing at a time.
                          I presume you are using the first script from this post.
                          Identical Marker Navigation #post-16
                          Once you write the word press ok and then Run the script again.

                          1. samuel henriques @samuel_henriques
                              2021-03-26 01:01:46.952Z

                              Every time you run the script after choosing the word, it will jump to the next marker with that word in its name

                              1. Sure.

                                I am using the 2 last scripts from this post: Identical Marker Navigation. The ones just before Jeremy writes "Yup! Both work very well. So great!" (haha)

                                Here's what I did exactly:

                                1. Copied the script for NEXT, made a new empty script in SF and pasted in your code.

                                2. I assigned that script a keyboard trigger (option-control-shift f15)

                                3. Switched to Pro Tools. Made a new session. Made some new markers called "flash". Then I made some other markers throughout with the default names (Location1, 2, 3...)

                                4. Inserted the curser before the first occurrence of "flash".

                                5. Pressed my keyboard trigger to go to the next marker named "flash".

                                6. I get the window asking me the name of the marker I want to go to. I type in "flash" and hit OK.

                                7. The window disappears, but the curser doesn't move.

                                8. I trigger the script again. Same thing.

                                1. Haha not meant to insult your script! just meant it was funny since I'm having problems :)

                                  1. samuel henriques @samuel_henriques
                                      2021-03-26 01:14:24.349Z

                                      No problem, we'll figure it out.
                                      Would you mind simplifying the keyboard trigger you are using to just f15? And try again, just to test, please

                                      1. Strange, I had tried with a simpler trigger before and it didn't work. But I just changed it again and now it's working. Did not change anything else...hmm. Anyway, that is awesome and something I've wanted for a long time!!!

                                        My only remaining question is, I'm not clear how to get it to prompt me to change the search text.

                                        My marker navigation keys use modifiers with the left/right arrow. So I'd like to use shift-option-right arrow as my trigger to go to next marker with the same name (tried that trigger and it works).

                                        You wrote that I should use command with the same trigger key. But if I try adding command to that (shift-option-command-right arrow) that doesn't work.

                                        1. samuel henriques @samuel_henriques
                                            2021-03-26 01:35:22.360Z

                                            Cool. One problem fixed.
                                            The the prompt opens if the cmd key is pressed, so what you do is create two triggers for that script.
                                            The first you have, the second you add the cmd key
                                            Try this, and let me know

                                            1. samuel henriques @samuel_henriques
                                                2021-03-26 01:39:45.382Z

                                                Of course, this is good if you want a prompt. It's possible to get a bunch of keywords on different triggered or buttons to call the markers.

                                                1. I must be doing this wrong. These are my triggers. If I do the one with the command key added it behaves the same as it would without (goes to next named marker).

                                                  1. samuel henriques @samuel_henriques
                                                      2021-03-26 01:43:41.746Z

                                                      Sorry,my mistake, the key to trigger the prompt is ctr not command.

                                                      1. That did it! Hooray!!! Sorry for the huge struggle to understand this. But wow, that is FANTASTIC!!! So useful. Thanks for writing the code and for your patience walking me through it :)

                                                        1. samuel henriques @samuel_henriques
                                                            2021-03-26 01:55:13.786Z

                                                            Awesome, just happy to help.

                                                            Check out @Kitch videos on the tutorials section, they are really good. And he's doing a new webinar on Wednesdays, https://www.facebook.com/groups/soundflow/permalink/886638118844015/

                                                            1. Kitch Membery @Kitch2021-03-26 02:27:32.649Z

                                                              Rock on legends! :-)