No internet connection
  1. Home
  2. How to

Pro Tools: Focus plugin window

By Jordon Popp @Jordon_Popp
    2025-01-16 19:57:05.675Z

    Hey all, I'm using an external controller to control plugins, and while it's very convenient, I have to click on the plugin window every time I need to tweak a plugin with the controller.

    I'd like to set up a script so that whenever the controller sends a CC command, it brings the plugin window into focus.

    I'm not exactly sure where to start with this, and haven't found any solutions when searing the forum.

    • 2 replies
    1. Kitch Membery @Kitch2025-01-16 20:53:27.931Z

      Hi @Jordon_Popp,

      You could use a script like this to focus the first Plugin Window if one exists.

      const frontmostPluginWindow = sf.ui.proTools.pluginWindow;
      
      if (frontmostPluginWindow.exists && !frontmostPluginWindow.isFocused) {
          frontmostPluginWindow.windowFocusClick();
      }
      

      You'd then need to add a MIDI trigger to the command.

      I'd also suggest checking out CS Control by @Chris_Shaw if you're looking for a solution to control Pro Tools Plugins with SoundFlow.

      For more information see the following link to the package :-)
      https://soundflow.org/store/pkg/cs-control

      1. J
        In reply toJordon_Popp:
        Jordon Popp @Jordon_Popp
          2025-01-16 22:11:24.030Z

          Awesome, I'll give this a shot. Thank you!