Animating RPM eyes

Is there some way to animate eyes in the RPM avatar?

Something like eyes.lookAt(position)

Thanks a ton!

Hello!
You can use the “Eye Animation Handler” Script component that you can attach to your avatar. The component allows you to tweak the blink duration and interval.

For the look-at, you can unfold the character in the hierarchy to find the LeftEye and RightEye objects and attach a script where you can call the LookAt method from Unity specifying the target object that you want the eye object to look at (Method in Unity docs: Unity - Scripting API: Transform.LookAt)

Got it, thanks so much!

How do I unfold the character to get to the eye objects?

I only see this as my hierarchy:
image

Continue unfolding under Spine like shown in image below
image

1 Like

Thank you so much! Will give that a shot

FYI there’s a bug in this script (Eye Animation Handler) now. It expects a head mesh, when all newly created RPM models have a merged mesh instead of separate ones. Making this script work requires modifying a line in the script where the skinned mesh renderer is cached, which of course is a terrible practice.

For now I’m duplicating the entire Eye Animation Handler script with that single line change. Hopefully this will be corrected in the next RPM Core.