# How can I set an Automation of 3D Panner's Min Distance via fmod parameter?

**URL:** <https://qa.fmod.com/t/how-can-i-set-an-automation-of-3d-panners-min-distance-via-fmod-parameter/12866>\
**Category:** FMOD Studio\
**Created:** [December 12, 2016, 8:49am UTC](https://qa.fmod.com/t/how-can-i-set-an-automation-of-3d-panners-min-distance-via-fmod-parameter/12866 "2016-12-12T08:49:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![yihoe1](https://avatars.discourse-cdn.com/v4/letter/y/76d3ee/32.png) [@yihoe1](https://qa.fmod.com/u/yihoe1)\
**Post date:** [December 12, 2016, 8:49am UTC](https://qa.fmod.com/t/how-can-i-set-an-automation-of-3d-panners-min-distance-via-fmod-parameter/12866/1 "2016-12-12T08:49:28Z")

</div>

Hi,

If I use a parameter such as “Audio DyanmicScale” or “FMOD Scale” etc,  
can I make an automation controlling Min & Max Distance of 3D Panner?  
I just figure out I can make an automation controlling Sound Size, Min Extent and Pan overide mix.  
I think, Min distance and Max distance’s Automation will be more useful than Sound Size, Min extent or pan overide mix, if possible it is.

---

<div class="post-metadata">

**Author:** ![SonikSky](https://avatars.discourse-cdn.com/v4/letter/s/ee59a6/32.png) [@SonikSky](https://qa.fmod.com/u/SonikSky)\
**Post date:** [December 12, 2016, 11:06pm UTC](https://qa.fmod.com/t/how-can-i-set-an-automation-of-3d-panners-min-distance-via-fmod-parameter/12866/2 "2016-12-12T23:06:52Z")

</div>

> [@](#):
>
> Hi,
> 
> If I use a parameter such as “Audio DyanmicScale” or “FMOD Scale” etc,  
> can I make an automation controlling Min & Max Distance of 3D Panner?  
> I just figure out I can make an automation controlling Sound Size, Min Extent and Pan overide mix.  
> I think, Min distance and Max distance’s Automation will be more useful than Sound Size, Min extent or pan overide mix, if possible it is.

I would love to know how to do this as well. It’d be so cool to be able to automate min/max distance as a param.

---

<div class="post-metadata">

**Author:** ![patrick](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/patrick/32/261_2.png) [@patrick](https://qa.fmod.com/u/patrick)\
**Post date:** [December 15, 2016, 3:07am UTC](https://qa.fmod.com/t/how-can-i-set-an-automation-of-3d-panners-min-distance-via-fmod-parameter/12866/3 "2016-12-15T03:07:43Z")

</div>

Thanks for your question. You cannot currently automate min & max distance of the 3D panner (this item is on our backlog). However, you can set these values programmatically using Studio::EventInstance::setProperty() with FMOD\_STUDIO\_EVENT\_PROPERTY\_MINIMUM\_DISTANCE and FMOD\_STUDIO\_EVENT\_PROPERTY\_MAXIMUM\_DISTANCE to set the min and max distance respectively.

See [https://www.fmod.org/documentation/#content/generated/FMOD\_Studio\_EventInstance\_SetProperty.html](https://www.fmod.org/documentation/#content/generated/FMOD_Studio_EventInstance_SetProperty.html) for more information.
