No internet connection
  1. Home
  2. Support

Recall and scroll into view selected track from globalState variable

By TK_Delay @TK_Delay
    2023-08-04 11:41:55.707Z

    Recall and scroll into view selected track from globalState variable

    System Information

    SoundFlow 5.4.4

    OS: darwin 21.6.0

    ProductName: macOS
    ProductVersion: 12.6.8
    BuildVersion: 21G725

    Steps to Reproduce

    1. I get the selected tracks and store them in globalState variable with:

    globalState['selectedTrackName'] = sf.ui.proTools.selectedTrackNames[0];

    1. I select a different track.Then I try to recall the selected tracks with:

    let trackName = globalState['selectedTrackName'];
    sf.ui.proTools.trackGetByName({ name: trackName, makeVisible: true }).track.trackScrollToView();

    1. Then I get the message:

    Track Selected Set failed
    Selected track header and track list item does not
    match. List Name: ". Header Name: BOOM 1 (Track

    1. and the Color Palette opens. (crazy)

    2. If I give the command "Track Selected Set" another time it is working and the stored tracks are recalled.
      I think it has something to do with the blinking playhead/or selection.
      Because after the message "Track Selected Set failed" the selection is canceled/the blinking playhead disapear.

    Expected Result

    Recalling the stored tracks.

    Actual Result

    I get the message:

    Track Selected Set failed
    Selected track header and track list item does not
    match. List Name: ". Header Name: BOOM 1 (Track

    ..and the Color Palette opens.

    Workaround

    If I give the command "Track Selected Set" another time it is working and the stored tracks are recalled.
    I think it has something to do with the blinking playhead/or selection.
    Because after the message "Track Selected Set failed" the selection is canceled/the blinking playhead disapear.

    Other Notes

    Please help me with. I use this recalling track selection really often.

    Best regards, Tobi


    Links

    User UID: 4taGHyPmJmaYid5nO4NScJPOrPr1

    Feedback Key: sffeedback:4taGHyPmJmaYid5nO4NScJPOrPr1:-Nb-LedxjhoBwafc2wzs

    Feedback ZIP

    Solved in post #9, click to view
    • 10 replies
    1. Hi,

      Can you check if you have Tooltips selected in Preferences as shown here?

      https://soundflow.org/docs/getting-started/install-soundflow/known-issues

      1. TTK_Delay @TK_Delay
          2023-08-06 18:15:18.194Z

          Hi Christian,
          I checked everything but it still doesn't work.
          Is there anything else I can do?

          1. Do you have the track list showing when you're attempting this?

            1. TTK_Delay @TK_Delay
                2023-08-06 20:09:08.148Z2023-08-06 20:15:30.407Z

                I tried with track list and without.. It`s the same behavior.
                Why does the command trigger the color palette window?

                1. I'm not sure. Would you be able to make a screen recording of this behavior?

                  1. TTK_Delay @TK_Delay
                      2023-08-07 10:02:03.402Z

                      Yes of course. Where can I upload the video? (4 MB)

                      1. In reply tochrscheuer:
                        TTK_Delay @TK_Delay
                          2023-08-07 10:09:31.305Z

                          This is the macro I want to trigger:

                          And the result:

                          1. Could you try:

                            1. Make the track list wider so that full track names are displayed
                            2. Restart SoundFlow
                            3. try again
                            ReplySolution
                            1. TTK_Delay @TK_Delay
                                2023-08-07 11:28:06.975Z

                                Thats it!
                                Thank you so much! You are great!

                                1. Awesome :)