# Set parameter based on curve in Fmod Editor.

**URL:** https://qa.fmod.com/t/set-parameter-based-on-curve-in-fmod-editor/14067
**Category:** Unreal Engine
**Created:** [August 27, 2018, 7:53pm UTC](https://qa.fmod.com/t/set-parameter-based-on-curve-in-fmod-editor/14067 "2018-08-27T19:53:31Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![samoraes](https://avatars.discourse-cdn.com/v4/letter/s/d07c76/32.png) [@samoraes](https://qa.fmod.com/u/samoraes)
#### Post date: [August 27, 2018, 7:53pm UTC](https://qa.fmod.com/t/set-parameter-based-on-curve-in-fmod-editor/14067/1 "2018-08-27T19:53:31Z")

</div>

I would like to set a curve inside FMOD Studio and get this value inside the UE4, if I use parameter I can not set the value inside an event. I want to use the value to set the speech animation, where 0 corresponds to the closed mouth and 1 corresponds to the open mouth. I tried to score and the result was not good.

[https://1drv.ms/u/s!AuCLF\_Fi4tT7qDEwL1tqnMSTQjSj](https://1drv.ms/u/s!AuCLF_Fi4tT7qDEwL1tqnMSTQjSj)

---

<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: [August 30, 2018, 4:50am UTC](https://qa.fmod.com/t/set-parameter-based-on-curve-in-fmod-editor/14067/2 "2018-08-30T04:50:45Z")

</div>

Hi Mauro,

You can use the “getParameterValue” function to get the current value of your event’s parameter.

[https://www.fmod.com/resources/documentation-api?page=content/generated/FMOD\_Studio\_EventInstance\_GetParameterValue.html#/](https://www.fmod.com/resources/documentation-api?page=content/generated/FMOD_Studio_EventInstance_GetParameterValue.html#/)

Thanks,  
Richard

---

<div class="post-metadata">

### Author: ![samoraes](https://avatars.discourse-cdn.com/v4/letter/s/d07c76/32.png) [@samoraes](https://qa.fmod.com/u/samoraes)
#### Post date: [August 30, 2018, 1:46pm UTC](https://qa.fmod.com/t/set-parameter-based-on-curve-in-fmod-editor/14067/3 "2018-08-30T13:46:53Z")

</div>

> [@](#):
>
> Hi Mauro,
> 
> You can use the “getParameterValue” function to get the current value of your event’s parameter.
> 
> [https://www.fmod.com/resources/documentation-api?page=content/generated/FMOD\_Studio\_EventInstance\_GetParameterValue.html#/](https://www.fmod.com/resources/documentation-api?page=content/generated/FMOD_Studio_EventInstance_GetParameterValue.html#/)
> 
> Thanks,  
> Richard

But how do I change a parameter in FMOD Studio according to the event? Because parameter does not have Automation where I can make a curve that changes the sound parameter to the entire event.

---

<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: [August 31, 2018, 2:27am UTC](https://qa.fmod.com/t/set-parameter-based-on-curve-in-fmod-editor/14067/4 "2018-08-31T02:27:32Z")

</div>

Hi Mauro,

It’s currently not possible to automate parameters within the same they reside in but you can work around it:

- Create a new event
- Drag the event with the parameter you wish to automate into the new events timeline (making it an event instrument)
- Select the event instrument and right click on the parameter dial and select “Add Automation”

Thanks,  
Richard

---

<div class="post-metadata">

### Author: ![samoraes](https://avatars.discourse-cdn.com/v4/letter/s/d07c76/32.png) [@samoraes](https://qa.fmod.com/u/samoraes)
#### Post date: [September 3, 2018, 1:18pm UTC](https://qa.fmod.com/t/set-parameter-based-on-curve-in-fmod-editor/14067/5 "2018-09-03T13:18:09Z")

</div>

When I use the solution that indicated me happens another problem. I can not get the parameter of the Event where I did Automation in Unreal, I believe it is because it is a reference of another event.

Thanks,  
Mauro

---

<div class="post-metadata">

### Author: ![samoraes](https://avatars.discourse-cdn.com/v4/letter/s/d07c76/32.png) [@samoraes](https://qa.fmod.com/u/samoraes)
#### Post date: [September 3, 2018, 6:32pm UTC](https://qa.fmod.com/t/set-parameter-based-on-curve-in-fmod-editor/14067/6 "2018-09-03T18:32:50Z")

</div>

Here is the image of how I am doing

[https://drive.google.com/open?id=1OZ2VCpS22CX8NXnvAvkdXsCM\_sU9K9F0](https://drive.google.com/open?id=1OZ2VCpS22CX8NXnvAvkdXsCM_sU9K9F0)

---

<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: [September 5, 2018, 12:23am UTC](https://qa.fmod.com/t/set-parameter-based-on-curve-in-fmod-editor/14067/7 "2018-09-05T00:23:51Z")

</div>

Hi Mauro,

If the parameter is exposed (since you’ve automated it then it should be) you can get the parameter of the event but from the “parent” event (the event that the event instrument is in).

Thanks,  
Richard
