No internet connection
  1. Home
  2. Support

Toggle Bypass script

By Timo Pulkkinen @Timo_Pulkkinen
    2022-03-11 11:28:04.530Z

    Title

    Toggle Bypass script

    What do you expect to happen when you run the script/macro?

    The script is supposed to toggle Bypass on a particular insert on "Master 1" track.

    Are you seeing an error?

    What happens when you run this script?

    The scipt selects the Master 1 track, but it will not toggle the bypass on any insert.

    How were you running this script?

    I clicked the "Run Script" or "Run Macro" button in SoundFlow

    How important is this issue to you?

    2

    Details

    {
        "inputExpected": "The script is supposed to toggle Bypass on a particular insert on  \"Master 1\" track.",
        "inputIsError": false,
        "inputWhatHappens": "The scipt selects the Master 1 track, but it will not toggle the bypass on any insert.",
        "inputHowRun": {
            "key": "-MpfwYA4I6GGlXgvp5j1",
            "title": "I clicked the \"Run Script\" or \"Run Macro\" button in SoundFlow"
        },
        "inputImportance": 2,
        "inputTitle": "Toggle Bypass script"
    }

    Source

     sf.ui.proTools.trackSelectByName({
        names: ["Master 1"],
    }); 
    sf.ui.proTools.selectedTrack.trackInsertToggleBypass({
        insertNumber: 1
    });
    

    Links

    User UID: ouVomiblTcg16kRSE2X1eH7HEGj1

    Feedback Key: sffeedback:ouVomiblTcg16kRSE2X1eH7HEGj1:-Mxsj4_swRlbZKYH4oX3

    Feedback ZIP

    • 4 replies
    1. Hi Timo,

      Do you have Linked Edit and Track Selection turned on?

      1. T
        In reply toTimo_Pulkkinen:
        Timo Pulkkinen @Timo_Pulkkinen
          2022-03-13 09:22:01.466Z

          How do one turn them on?

          1. Hey Timo,
            "Link Track and Edit Selection" can be found under "Options" in the main Pro Tools menu.

            Generally speaking, the two settings that need to be on for SF to operate smoothly is "Link Track and Edit Selection" as described above and both "Tooltips" options in the PT preferences:

            1. As for the problem you're having with the script above, it's best to run SF script while Pro Tools is the frontmost / focused application. You should assign a trigger to the script and trigger it while PT is the active application.

              If you need to run a script from the SF editor then the first line of your script should be
              sf.ui.proTools.appActivate();
              which will focus Pro Tools before continuing on with the rest of your script.

              Similarly, if you need to run a macro from the SF editor then the first action in your macro should activate Pro Tools: