I want an arrowhead to follow a path. For which I am using this expression on its position property. t=thisComp.layer(index+1).content(“Path”).content(“Path 1”).path; l=thisComp.layer(index+1).content(“Path”).content(“Trim Paths 1”).end;
t.pointOnPath(percentage = l/100, t = time)
Everything is working fine except the auto-Orient. As soon as the animation completes it stops working. It only rotates the layer if its position velocity is > 0. Otherwise, it sets the layer back to the original.
It doesn’t matter what’s the value of my end or starting point is. It always glitches at the very beginning and end. It’s more like if the position velocity is more than 0 it will Auto orient it otherwise it won’t.