# Automating the Spatializer -\> PanOverride -\> Mix Knob via Scripting

**URL:** <https://qa.fmod.com/t/automating-the-spatializer-panoverride-mix-knob-via-scripting/15025>\
**Category:** FMOD Studio\
**Created:** [September 4, 2019, 7:33pm UTC](https://qa.fmod.com/t/automating-the-spatializer-panoverride-mix-knob-via-scripting/15025 "2019-09-04T19:33:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![NPaladino](https://avatars.discourse-cdn.com/v4/letter/n/49beb7/32.png) [@NPaladino](https://qa.fmod.com/u/NPaladino)\
**Post date:** [September 4, 2019, 7:33pm UTC](https://qa.fmod.com/t/automating-the-spatializer-panoverride-mix-knob-via-scripting/15025/1 "2019-09-04T19:33:43Z")

</div>

Hi all,

I’m looking to automate the Mix knob of the Pan Override in the Spatializer via a script. From the documentation, it seems straightfoward if I want to add the effect, but the effect already exists. How do I get at that automatable object?

Obviously it’s some variation on this, but I just can’t seem to figure out how to get that spatializer object, and what automatable thing it would be (probably not just “mix”):

// adds an automation curve  
var automator = spatializer.addAutomator(“Mix”);  
var 3dParam= studio.project.lookup(“parameter:/3D”);  
var automationCurve = automator.addAutomationCurve(3dParam.parameter);

Thanks!

---

<div class="post-metadata">

**Author:** ![joseph](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/joseph/32/264_2.png) [@joseph](https://qa.fmod.com/u/joseph)\
**Post date:** [September 6, 2019, 4:11am UTC](https://qa.fmod.com/t/automating-the-spatializer-panoverride-mix-knob-via-scripting/15025/2 "2019-09-06T04:11:08Z")

</div>

The `(ManagedObject:SpatialiserEffect)` object is one of the `effects` of the `effectChain` of the `mixerGroup` of the track whose signal chain contains the spatializer effect you’re trying to automate. The `mixerGroup` is part of the `masterTrack` (or perhaps one of the `groupTracks`) of the event.

The spatializer property you’re looking for is called `panBlend`. It’s a float that ranges from 0-1, where 0 is equal to a Mix of 100% and 1 is a mix of 0%.

---

<div class="post-metadata">

**Author:** ![NPaladino](https://avatars.discourse-cdn.com/v4/letter/n/49beb7/32.png) [@NPaladino](https://qa.fmod.com/u/NPaladino)\
**Post date:** [September 6, 2019, 11:03pm UTC](https://qa.fmod.com/t/automating-the-spatializer-panoverride-mix-knob-via-scripting/15025/3 "2019-09-06T23:03:41Z")

</div>

Perfect, thanks! Just for my own reference, is there a section in the documentation that I missed, or would this have required source code to know?

---

<div class="post-metadata">

**Author:** ![joseph](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/joseph/32/264_2.png) [@joseph](https://qa.fmod.com/u/joseph)\
**Post date:** [September 10, 2019, 12:24am UTC](https://qa.fmod.com/t/automating-the-spatializer-panoverride-mix-knob-via-scripting/15025/4 "2019-09-10T00:24:27Z")

</div>

You can get the properties of any managed object, managed property, managed property map, relationship, or relationship map in an FMOD Studio project by calling dump() on that object. By using this sequentially, you can explore your entire project.

For example, you could start by calling `studio.project.workspace.dump()` in the terminal. This will give you a list of the `workspace` managed object’s properties, one of which is the `masterEventFolder`. If you then call `studio.project.workspace.masterEventFolder.dump()`, you’ll get the `masterEventFolder`'s properties, one of which is `items`, a list of the events in your project. If you then call dump() on one of those events, you’ll get that event’s properties, and so on.

The various flavors of dump() are described [here](https://www.fmod.com/resources/documentation-studio?version=2.0&page=scripting-api-reference-project.html#managedobjectdump), [here](https://www.fmod.com/resources/documentation-studio?version=2.0&page=scripting-api-reference-project.html#managedpropertydump), [here](https://www.fmod.com/resources/documentation-studio?version=2.0&page=scripting-api-reference-project.html#managedpropertymapdump), [here](https://www.fmod.com/resources/documentation-studio?version=2.0&page=scripting-api-reference-project.html#managedrelationshipdump), and [here](https://www.fmod.com/resources/documentation-studio?version=2.0&page=scripting-api-reference-project.html#managedrelationshipmapdump) in the [FMOD Studio User Manual](https://www.fmod.com/resources/documentation-studio?version=2.0).

---

<div class="post-metadata">

**Author:** ![NPaladino](https://avatars.discourse-cdn.com/v4/letter/n/49beb7/32.png) [@NPaladino](https://qa.fmod.com/u/NPaladino)\
**Post date:** [September 10, 2019, 12:29am UTC](https://qa.fmod.com/t/automating-the-spatializer-panoverride-mix-knob-via-scripting/15025/5 "2019-09-10T00:29:35Z")

</div>

Perfect. Exactly what I was looking for. Thank you so much, Joseph!
