[Tutorial] Eye Tracking For Cartoon Eyes

To create effects with eye tracking like below:
https://vm.tiktok.com/ZGebAkA71/ Link!
It’s somewhat simple but you have to know where to look

  1. Create eyes in blender or other 3D software (the default sphere can also work)
  2. Place where you want the eyes to go, you can add a face mesh to occlude the face. Make sure to check if eyes are enabled and turn that off.
  3. Go into visual scripting and set up Face Avatar Result nodes. Depending on how perfect you want the eyes you can do this differently than I did but for performance’s sake I only tracked one eye and applied it to both.
    Imgur: The magic of the Internet (Picture of my nodes)
  4. Set up your script like above. Lerp between the max outer range and the center position of how you want the eye to move. Add it with the opposite direction tracking and divide it by 2. Do the same thing for up/down and left/right. You can average both eyes like I did on the very bottom for more exact tracking.
  5. Connect it to the rotation of your eye meshes.

Have fun creating! Let me know if you have any questions since I know the picture doesn’t have the best resolution.