No internet connection
  1. Home
  2. Support

BUG: Memory Location Update Selection Issue

By Travis Handley @Travis_Handley
    2024-01-23 04:18:30.550Z

    Hi SF Team,

    When editing or creating a Selection based memory location using the new SDK commands sf.app.protools.createMemoryLocation() or sf.app.protools.editMemoryLocation() functions, the track selection is not stored.

    I tried to select the memory location using both

    sf.app.protools.selectMemoryLocation({ ... }) and sf.ui.protools.memoryLocationsGoto({ ... })

    and neither function re-select the original tracks.
    The timeline in and out points do appear.

    Note: both Link Track/Timeline and Edit Selection is enabled.

    First, manually make a selection. Then run the following script:

    sf.app.proTools.createMemoryLocation({ // Or editMemoryLocation
        number: 999,
        name: "TEST MARKER",
        timeProperties: "Selection",
        startTime: sf.app.proTools.getTimelineSelection({ timeScale: "Samples" }).inTime,
        endTime: sf.app.proTools.getTimelineSelection({ timeScale: "Samples" }).outTime,
        comments: "" // required for some reason
    });
    
    sf.app.proTools.selectMemoryLocation({
        number: 999
    });
    
    // OR
    // sf.ui.proTools.memoryLocationsGoto({
    //     memoryLocationNumber: 999
    // });
    

    Any ideas?

    Thanks! Travis

    • 13 replies
    1. S
      SoundFlow Bot @soundflowbot
        2024-01-23 04:18:34.046Z

        Thanks for contacting SoundFlow support.

        Please note, that the best way to get help with a script, macro or other content installed from the Store or content that you've made yourself, is to select the script/macro, then click the red Need help button, and then click "Get help with this script or macro".
        By using this method, we will get access to more information and so should be able to help you quicker.
        You can read more about how this works here: bit.ly/sfscripthelp

        If you're seeing an error that isn't related to scripts or macros, and you think this is a bug in SoundFlow, please file a Help/Issue bug report.
        You can see how to do this by going to bit.ly/sfhelpissue

        1. In reply toTravis_Handley:

          Hi Travis,

          Remembering track selection using memory locations made by the sf.app.... functions is not currently supported. This is a setting that needs to be set on the memory locations when they're being made (like you would in the UI), but this feature had bugs in the original PT implementation of the feature, so we won't be supporting it until those bugs are fixed.

          1. I'm noticing I may not be understanding you correctly. Do you mean the timeline selection or track selection (ie. which tracks are selected). Either way, any potential issues here would be issues on the Pro Tools side.
            If you need a stable solution here and now, you'd have to automate this using UI automation where you'll be in full control. We can only forward bugs on the PT SDK to Avid, and so we're not in control over how/when those PT bugs may be fixed.

            1. I'm logging an internal report for now - once I have a few more details we can forward this info to Avid.

              1. TTravis Handley @Travis_Handley
                  2024-01-23 23:04:13.035Z

                  Thanks Christian!

                  https://drive.google.com/open?id=1d1fTe9FzK-ity45RMMIJRCl57dEXFHvz&usp=drive_fs

                  The above link is to a short video showing the behaviour.

                  The first three examples are using the UI to update the selection marker and work as intended.

                  The last two examples are using the script where it retains the correct timeline selection but doesn't retain the correct track selection (it keeps the previous track selection set using the UI).

                  Let me know if you need any more info!

                  1. Thanks Travis. What version of Pro Tools is this?

                    1. TTravis Handley @Travis_Handley
                        2024-01-24 03:36:59.960Z

                        We're on 2023.12.1

                        Thanks!

                        1. Great, thank you, we'll pass this on.

              2. S
                In reply toTravis_Handley:
                SoundFlow Bot @soundflowbot
                  2024-01-23 17:02:54.976Z

                  This issue is now tracked internally by SoundFlow as SF-1042

                  1. Tracking in SFA-13.

                  2. T
                    In reply toTravis_Handley:
                    Travis Handley @Travis_Handley
                      2025-03-04 00:27:53.216Z

                      Hi Christian,

                      Has there been any progress with this?

                      Thanks!
                      Travis

                      1. Hi Travis,
                        This bug is on the Avid side, so unfortunately, I'm not allowed to share info from them - but, I just pinged the internal bug report.

                        1. In reply toTravis_Handley:
                          Dustin Harris @Dustin_Harris
                            2025-03-04 21:16:30.800Z

                            try using the trackVisibility: true property in the marker methods; I seem to remember it being necessary to recall the track selections?