I found a lead on this, but am not as sure about the specific modification of platform exclusion in a way that is safe.
Using something like this, I can see what platform are excluded. It looks like this is not a pluginParameter though and changing it would mean changing several values? Ideally, I want to safely switch what platforms are excluded and not.
studio.menu.addMenuItem({
name: "Disable Oculus Spatitalizers",
execute: function() {
var selectedEvents = studio.window.browserSelection();
selectedEvents.forEach(function(event)
{
var effectChain = event.masterTrack.mixerGroup.effectChain;
var effectChainEffects = effectChain.effects;
effectChainEffects.forEach(function(eventEffect)
{
eventEffect.excludedPlatforms.forEach(function(excludedPlatforms)
{
console.log(excludedPlatforms.dump());
});
});
});
},
});