No internet connection
  1. Home
  2. How to

Click on UI element of First selected Track

By Phil McGowan @Phil_McGowan
    2021-01-11 18:55:33.386Z

    Hey all,
    I'm trying to build a script that makes a group, sets some group parameters, and then clicks the fader/pan button of the first selected track (the little fader next to the output selection in the I/O section of the edit window).

    I have all the group creation and modification parts working great but I can't seem to figure out how to program soundflow to select that button the first selected track, once I set a UI element it of course only selects that exact UI element, not one related to the first selected track.

    Is this even possible?

    Thanks!

    -Phil

    • 3 replies
    1. Phil McGowan @Phil_McGowan
        2021-01-11 19:35:23.231Z

        Ok so I actually just programmed it to show selected tracks and it now clicks one of the tracks just fine.

        My final issue is that I'd like to program Soundflow to delete the group that is created just for this script, but I'm having trouble getting it to work with the group I created regardless of what "row" it's in.

        This script should work no matter what other groups are in my session so I'd like soundflow to right click and select menu item of a specific group name, defined earlier in the script.

        Basically, in this window:

        I want to remove the "17. Row" part of the UI Element so that it always picks the group named "4z - Pan 15" regardless of what row it's in.

        I tried turning this part of the macro into a script and deleting parts of it but it always fails for me.

        Thanks!
        -Phil

        1. In reply toPhil_McGowan:
          samuel henriques @samuel_henriques
            2021-01-11 19:44:20.221Z

            hello @Phil_McGowan ,

            is this it?

            sf.ui.proTools.selectedTrack.trackOutputToggleShow()
            
            1. In reply toPhil_McGowan:
              Phil McGowan @Phil_McGowan
                2021-01-12 02:56:47.444Z

                Ok now the UI Element click is failing again.....ughhh

                I can't get this to work, suddenly:

                It was working totally fine before and now for some reason no matter what parameter I change it fails.