Set parameter based on curve in Fmod Editor.


(Mauro Moraes de Sá) #1

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


(リチャード清水) #2

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#/

Thanks,
Richard


(Mauro Moraes de Sá) #3

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.


(リチャード清水) #4

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


(Mauro Moraes de Sá) #5

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


(Mauro Moraes de Sá) #6

Here is the image of how I am doing

https://drive.google.com/open?id=1OZ2VCpS22CX8NXnvAvkdXsCM_sU9K9F0


(リチャード清水) #7

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