-
Auto-orient without Auto-Orient Along Path
Hi there! I have noticed Auto-Orient Along Path does not changes the rotation value of the layer, and sometimes I miss it. So, to fix this, i created this expression for the rotation of a 2D Layer:
var t = position.valueAtTime (time + thisComp.frameDuration); vec = position – t;
radiansToDegrees (Math.atan2 (vec[1], vec[0]))
The problem is that it only works when the layer is moving. I used a lot of if/else trying to correct but I just wasted time. So I need some help to solve this problem.
Thanks!