Participant
June 20, 2023
Answered
Arrow head rotation flipping
- June 20, 2023
- 2 replies
- 863 views
Hey guys, I'm having an issue where I keyframe the path of the line and the linked arrow head flips back and forth. Hoping someone can help me solve this issue! I've isolated the issue to the rotation of the null that is following on the poition from the line's position, the arrow head is then linked to this null.
Please see the expression on the null's rotation below and video of what's happening:
var pathToTrace = thisComp.layer("Shape Layer 1")("ADBE Root Vectors Group")(1)("ADBE Vectors Group")(1)("ADBE Vector Shape");
var progress = thisLayer.effect("Pseudo/ADBE Trace Path")("Pseudo/ADBE Trace Path-0001")/100;
var pathTan = pathToTrace.tangentOnPath(progress);
radiansToDegrees(Math.atan2(pathTan[1],pathTan[0]));
