This looks really interesting, however, it doesn't seem to run on a Mac. Perhaps the encoding is off, when I opened in ExtendScript ToolKit, it was just a mess of characters instead of an actual script
I want to generate a solid square with position, scale and rotation based on a face track.
Is this something that can be done?
Found a script for rotation, just need to figure out scale... A=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, [1];
// Find the length of side b
SideB = sub(A, [0];
//Find the Angle between them
radiansToDegrees(Math.atan2(SideA, SideB))+180;
Found a script for rotation, just need to figure out scale...
A=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, [1]; // Find the length of side b SideB = sub(A, [0]; //Find the Angle between them radiansToDegrees(Math.atan2(SideA, SideB))+180;