How to randomly rotate an eye bone in a control rig ?

Hello,

I have an eye on my character and I would like it move it randomly (left, right, up… ) . I wanted to use a control rig to do that by moving the “eye” bone. My issue is that I cannot figure it out how to rotate the bone on the X (Left / Right) or Y axis (up/down). I don’t understand the quaternion . Can someone help me ?

What I did is this:

What I don’t know is what to put between the Get Transform and the Set Rotation. Any idea ?

I think you can even move it with a timeline node. Just an idea but i can’t really help further

Drag a pin from the Quat, then type “To Euler(Quaternion)”, and it’ll convert the Quat to Euler, giving you the XYZ axis values.
From there figure out which axis you need and eventually use the Noise node and play around with the settings for the randomization setup you mentioned.

1 Like

Hello, I did what you said and it works. I can successfully make the eye move randomly on both axis that I need! I have another question now. How do you make the transition smooth ? When the Eye move to a new random position it jumps to it.

Connect a kalmal filter between the noise node and the X/Y/Z input.
High values will make the transition super smooth, lower values the opposite.

2 Likes

Amazing man! Thanks

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.