-
Suggestions for Auto-orientation (In/Out)
Hi there,
I’m just trying to figure out a way to define a lag time with expressions while accounting for AE looking for data (before the first and after the last) around Roving Keyframes.
My example:
I have a source layer with roving positional keyframes that I am auto-orienting my source to.What I attempted was to have the expression layer (follower) do something like:
offset = 0.2;
tpos = time-offset;
firstTime = 0;
lastTime = 6;
spos = thisComp.layer(“leader”).transform.position;
spos.valueAtTime(tpos); //end lineBut the problem is that outside of the roved keyframes, I get no data- So I tried an [if] statement like:
if(time
lastTime){
tpos = lastTime;
}else{
tpos = time-offset;
}
}spos.valueAtTime(tpos); //new end line