-
Simple facial tracking in 3D?
I’ve been looking at some fairly basic video tutorials of the face tracking (detailed features). The tutorials I’ve been watching have been attaching a pair of glasses to a null object (which is exactly what I want to do), and then attaching the glasses to the null object. The problem is that the tutorials are used on a head that’s straight on to the camera. In the sample video I grabbed, the talent paces back and forth, and their head turns to either side of the frame. As the head turns, the glasses stay front-facing. Is there an expression to account for (I’m assuming) a Z- axis? I’m sure you’ve had this question before. I’ve looked, and haven’t been able to find it. Any help would be greatly appreciated!
Thanks 🙂
//Code by Paul CarlinA=thisComp.layer("your layer here").effect("Face Track Points")("Right Nostril");
B=thisComp.layer("your layer here").effect("Face Track Points")("Left Nostril");// Find the length of side a
SideA = sub(A, B)[1];// Find the length of side b
SideB = sub(A, B)[0];//Find the Angle between them
radiansToDegrees(Math.atan2(SideA, SideB))+180;