No internet connection
  1. Home
  2. Script Sharing

Toggle SoundID Sonarworks Calibration

By Chad Wahlbrink @Chad2022-01-18 19:01:19.186Z

I made a fun little script to toggle SoundID / Sonarworks Calibration on and off from the plug-in in your session. Note - that you need to have the plug-in in the first slot currently and you need to provide the name of the track you have it on!

Available on the store in the CW Pro Tools Utilities package.

// This script will toggle Sonarworks Processing
// The way all good stories start
sf.ui.proTools.appActivateMainWindow();
sf.ui.proTools.mainWindow.invalidate();

let { sonarworksTrackName } = event.props;
var soundIDWindow = sf.ui.proTools.windows.whoseTitle.is("Plug-in: SoundID Reference Plugin").first;

if (!soundIDWindow.exists) {
    sf.ui.proTools.trackGetByName({ name: sonarworksTrackName, makeVisible: true }).track.trackInsertToggleShow({
        targetValue: "Enable",
    });
    soundIDWindow.elementWaitFor({ waitType: "Appear" });
}

soundIDWindow.groups.whoseTitle.is("FXTDMEditView").first.mouseClickElement({
    relativePosition: { "x": -100, "y": -30 },
    anchor: "BottomRight",
});

sf.wait({ intervalMs: 750 });
soundIDWindow.windowClose();
soundIDWindow.elementWaitFor({ waitType: "Disappear" });

sf.ui.proTools.mainWindow.invalidate();
  • 3 replies
  1. T
    tom Carmichael @tom_Carmichael
      2022-01-25 14:54:25.520Z

      this is great, thank you

      1. L
        In reply toChad:
        Les Cooper @Les_Cooper
          2023-10-12 17:30:36.925Z

          Hey Chad.
          This is great!
          I don't see it in the CW Pro Tools package. Is it available somewhere?:

          1. Chad Wahlbrink @Chad2023-10-13 17:24:00.850Z

            Hey @Les_Cooper!

            I no longer have this included in the CW Pro Tools Utilities package. My use of Sonarworks fell off and I haven't looked into updating it to the latest versions.

            The same principals should work with any version of the plug-in. Using

            .mouseClickElement({relativePosition: { "x": ###, "y": ### },
                anchor: ####,
            });
            

            to click relative to the plug-in UI should be able to click buttons while the plug-in is open.