# I'd like to get / set FMod studio effect params in c++ code

**URL:** https://qa.fmod.com/t/id-like-to-get-set-fmod-studio-effect-params-in-c-code/13513
**Category:** FMOD Studio
**Created:** [November 2, 2017, 9:14am UTC](https://qa.fmod.com/t/id-like-to-get-set-fmod-studio-effect-params-in-c-code/13513 "2017-11-02T09:14:27Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![SmilegateEnt](https://avatars.discourse-cdn.com/v4/letter/s/858c86/32.png) [@SmilegateEnt](https://qa.fmod.com/u/SmilegateEnt)
#### Post date: [November 2, 2017, 9:14am UTC](https://qa.fmod.com/t/id-like-to-get-set-fmod-studio-effect-params-in-c-code/13513/1 "2017-11-02T09:14:27Z")

</div>

Hi all!  
First of all, Sorry for my bad english.

I’m a beginner as FMOD Studio Programmer

My team’s sound designer set some effect params using “FMod Studio tools”  
( ex. Fader, 3D Panner min&max distance, roll off ).

I’d like to get params information to display in my standalone program.  
But I can’t find this tool params from C++ structures or classes.  
where can I find these params and how to get values?

Because my project is that convert “FMOD Designer EX” system to “FMod Studio System”. So I must compare sounds between two different version clients.

Thank you for your good ideas.

Best regards.

---

<div class="post-metadata">

### Author: ![cameron-fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/cameron-fmod/32/261_2.png) [@cameron-fmod](https://qa.fmod.com/u/cameron-fmod)
#### Post date: [November 3, 2017, 5:26am UTC](https://qa.fmod.com/t/id-like-to-get-set-fmod-studio-effect-params-in-c-code/13513/2 "2017-11-03T05:26:13Z")

</div>

Once you have the event description you want to access the parameters of, you can use something like the following:

- Use EventDescription::getParameterCount to find out how many parameters it has.  
[https://fmod.com/resources/documentation-api?page=content/generated/FMOD\_Studio\_EventDescription\_GetParameterCount.html#/](https://fmod.com/resources/documentation-api?page=content/generated/FMOD_Studio_EventDescription_GetParameterCount.html#/)

- Loop through the parameters by index EventInstance::getParameterByIndex.  
[https://fmod.com/resources/documentation-api?page=content/generated/FMOD\_Studio\_EventDescription\_GetParameterByIndex.html#/](https://fmod.com/resources/documentation-api?page=content/generated/FMOD_Studio_EventDescription_GetParameterByIndex.html#/)

- This will give you a Parameter Description that contains the name, default value and more.  
[https://fmod.com/resources/documentation-api?page=content/generated/FMOD\_STUDIO\_PARAMETER\_DESCRIPTION.html#/](https://fmod.com/resources/documentation-api?page=content/generated/FMOD_STUDIO_PARAMETER_DESCRIPTION.html#/)

---

<div class="post-metadata">

### Author: ![SmilegateEnt](https://avatars.discourse-cdn.com/v4/letter/s/858c86/32.png) [@SmilegateEnt](https://qa.fmod.com/u/SmilegateEnt)
#### Post date: [November 3, 2017, 8:46am UTC](https://qa.fmod.com/t/id-like-to-get-set-fmod-studio-effect-params-in-c-code/13513/3 "2017-11-03T08:46:54Z")

</div>

> [@](#):
>
> Once you have the event description you want to access the parameters of, you can use something like the following:
> 
> - Use EventDescription::getParameterCount to find out how many parameters it has.  
> [https://fmod.com/resources/documentation-api?page=content/generated/FMOD\_Studio\_EventDescription\_GetParameterCount.html#/](https://fmod.com/resources/documentation-api?page=content/generated/FMOD_Studio_EventDescription_GetParameterCount.html#/)
> 
> - Loop through the parameters by index EventInstance::getParameterByIndex.  
> [https://fmod.com/resources/documentation-api?page=content/generated/FMOD\_Studio\_EventDescription\_GetParameterByIndex.html#/](https://fmod.com/resources/documentation-api?page=content/generated/FMOD_Studio_EventDescription_GetParameterByIndex.html#/)
> 
> - This will give you a Parameter Description that contains the name, default value and more.  
> [https://fmod.com/resources/documentation-api?page=content/generated/FMOD\_STUDIO\_PARAMETER\_DESCRIPTION.html#/](https://fmod.com/resources/documentation-api?page=content/generated/FMOD_STUDIO_PARAMETER_DESCRIPTION.html#/)

Thanks for your reply.

But I already checked EventDescription & EventInstance classes.  
( In my situation, I can’t find any Parameters( count = 0 ) )

For more information to you, in the “FMOD Studio User Manual”( Not Programmers manual ), they explained “Channels and Panning” and show a picture about control screenshot.(maybe they still explained at page 154? )

I want to take these parameters into my code.  
Then, what is best way to access these parameters?

Please let me know, if you have any suggestions.

I really appreciate any help you can provide.

---

<div class="post-metadata">

### Author: ![cameron-fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/cameron-fmod/32/261_2.png) [@cameron-fmod](https://qa.fmod.com/u/cameron-fmod)
#### Post date: [November 6, 2017, 4:24am UTC](https://qa.fmod.com/t/id-like-to-get-set-fmod-studio-effect-params-in-c-code/13513/4 "2017-11-06T04:24:04Z")

</div>

If you cannot get any parameters from the event instance then it sounds like they have not been exposed as parameters in FMOD Studio.  
Properties of the event need to be controlled by a parameter in Studio then in game you can control the parameter which will change the property in real time.  
You can use EventInstance::get/setProperty() for a few built in properties like panner min and max.
