# FMOD JS Scripting - Getting effect properties from plugin effect

**URL:** <https://qa.fmod.com/t/fmod-js-scripting-getting-effect-properties-from-plugin-effect/18456>\
**Category:** FMOD Studio\
**Created:** [March 2, 2022, 10:35pm UTC](https://qa.fmod.com/t/fmod-js-scripting-getting-effect-properties-from-plugin-effect/18456 "2022-03-02T22:35:08Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![richard\_simms](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/richard_simms/32/261_2.png) [@richard\_simms](https://qa.fmod.com/u/richard_simms)\
**Post date:** [March 2, 2022, 11:30pm UTC](https://qa.fmod.com/t/fmod-js-scripting-getting-effect-properties-from-plugin-effect/18456/2 "2022-03-02T23:30:31Z")

</div>

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

```auto
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("----");
                    });
                }
        });
    });

```

---

_[View the full topic](https://qa.fmod.com/t/fmod-js-scripting-getting-effect-properties-from-plugin-effect/18456)._
