How to trigger custom facial emotions?

I want to adapt my avatar’s facial emotions to the user.
I am using a python component to analyze user’s facial emotions and send it via an OSC server to unreal engine.

The goal is to read those user emotions (e.g. “happy”) and then trigger a “Joy” emotion on my Metahuman using Convai facial Anim class.

Best,
Navid

Hello,

It’s possible to manually force a specific emotion animation, but keep in mind that the character’s LLM won’t be aware of this forced emotion. It will only affect the visual animation.

Dear Kaan,

Thank you for the reply!

I do not mind if the LLM does not know about the emotion update. I basically want to start with a basic if condition that when IsHappy is true, preform a happy emotion, and I did the following under Set Emotion under Event Graph’s set emotion component under Convai_Metahuman_FaceAnim:

but when I run the project the emotion does not perform. Do you know what might be wrong here?

Best,
Navid

I found this post: How to use character initial emotions

Here they perform the happy animation by pressing the key “X”

I think this is under Convai Base Character, Event Graph.

I did it there, it did not work.

I tried triggering the emotion on the Metahuman’s Blueprint on Event Begin Play. The animation play for 1 second and quickly goes back to Neutral.

Where can I lock emotions?

Could you please add a small delay at the beginning?

This worked! Thanks.

1 Like