FMOD JS Scripting - Getting effect properties from plugin effect

To get the settings of the Oculus effect, you need to iterate through each of the plugin’s parameters. Try this bit of code:

var selectedEvents = studio.window.browserSelection();
selectedEvents.forEach(function(event)
    {
        var effectChain = event.masterTrack.mixerGroup.effectChain;
        var effectChainEffects = effectChain.effects;
        effectChainEffects.forEach(function(eventEffect) 
        {
                if(eventEffect.isOfType("PluginEffect"))
                {
                    //Found plugin on event
                    eventEffect.plugin.pluginParameters.forEach(function(param) 
                    {
                        console.log(param.dump());
                        console.log("----");
                    });
                }
        });
    });
1 Like