-
Auto-Orient along Path Not Working with Expression Delay
Hi,
I have a scenario where I have two layers animating in a 3D circle. The leader has the position keyframes and the follower is delayed using valueAtTime. I have Auto-Orient ‘Orient along Path’ turned on for the leader but not the follower. For the follower, I am using the following expression in its Orientation property (see expression, below).It works well except for at the beginning and end when the position property of the Leader and Follower are equal. When they are, it snaps from path orientation to 0°,0°,0° (see image, below). The same thing happens if I use Auto-Orient ‘Orient along Path’ with the Follower. Can anyone please help?
var leaderLayer = thisComp.layer("Leader Layer");
var overlapTime = thisComp.frameDuration;
p0 = position;
p1 = leaderLayer.transform.position.valueAtTime(time+overlapTime);
lookAt(p0,p1);


