# Add Resonance Audio Plug effects to events via FMOD Studio Scripting API?

**URL:** <https://qa.fmod.com/t/add-resonance-audio-plug-effects-to-events-via-fmod-studio-scripting-api/15983>\
**Category:** FMOD Studio\
**Created:** [July 18, 2020, 4:59pm UTC](https://qa.fmod.com/t/add-resonance-audio-plug-effects-to-events-via-fmod-studio-scripting-api/15983 "2020-07-18T16:59:22Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![super8ude](https://avatars.discourse-cdn.com/v4/letter/s/779978/32.png) [@super8ude](https://qa.fmod.com/u/super8ude)\
**Post date:** [July 18, 2020, 4:59pm UTC](https://qa.fmod.com/t/add-resonance-audio-plug-effects-to-events-via-fmod-studio-scripting-api/15983/1 "2020-07-18T16:59:23Z")

</div>

My project uses Resonance Audio and I’m trying to automate some event creation. Specifically i’m trying to add Resonance Audio Sources to events, as opposed to the standard Spatialiser.

Is there a way to do this via scripting, or must it be done manually?

---

<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:** [July 20, 2020, 4:58am UTC](https://qa.fmod.com/t/add-resonance-audio-plug-effects-to-events-via-fmod-studio-scripting-api/15983/2 "2020-07-20T04:58:13Z")

</div>

It is possible to do this with scripting, however an easier way would be to create a blank “spatialized” event and turn this into a Default event.

[https://www.fmod.com/resources/documentation-studio?version=2.1&page=glossary.html#default](https://www.fmod.com/resources/documentation-studio?version=2.1&page=glossary.html#default)

---

<div class="post-metadata">

**Author:** ![super8ude](https://avatars.discourse-cdn.com/v4/letter/s/779978/32.png) [@super8ude](https://qa.fmod.com/u/super8ude)\
**Post date:** [July 22, 2020, 3:12pm UTC](https://qa.fmod.com/t/add-resonance-audio-plug-effects-to-events-via-fmod-studio-scripting-api/15983/3 "2020-07-22T15:12:54Z")

</div>

Thanks for the quick turnaround! I’ll try that out.

In case that doesn’t work, what’s the command for adding a Resonance Audio Source? Or would it have to be a plug in preset?

---

<div class="post-metadata">

**Author:** ![super8ude](https://avatars.discourse-cdn.com/v4/letter/s/779978/32.png) [@super8ude](https://qa.fmod.com/u/super8ude)\
**Post date:** [July 23, 2020, 10:14pm UTC](https://qa.fmod.com/t/add-resonance-audio-plug-effects-to-events-via-fmod-studio-scripting-api/15983/4 "2020-07-23T22:14:30Z")

</div>

Hi, I’m struggling to figure out how to create a duplicate of the Default event from script - when I call studio.project.create(“Event”) it creates a blank 2D event, not an instance of the Default.

---

<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:** [July 28, 2020, 1:32am UTC](https://qa.fmod.com/t/add-resonance-audio-plug-effects-to-events-via-fmod-studio-scripting-api/15983/5 "2020-07-28T01:32:29Z")

</div>

It currently isn’t possible to create a Default event via scripting, instead you need to create an event in the style that you need and just repeat that function for as many times as needed.

In regards to adding a plugin, you can try the following:

`effectChain.relationships.effects.add(studio.project.workspace.createPlugin("Resonance Audio Source"));`

---

<div class="post-metadata">

**Author:** ![super8ude](https://avatars.discourse-cdn.com/v4/letter/s/779978/32.png) [@super8ude](https://qa.fmod.com/u/super8ude)\
**Post date:** [July 30, 2020, 7:05pm UTC](https://qa.fmod.com/t/add-resonance-audio-plug-effects-to-events-via-fmod-studio-scripting-api/15983/6 "2020-07-30T19:05:09Z")

</div>

Seems to work! Thank you.
