-
Auto Orient not working with expression.
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.