Activity › Forums › Adobe After Effects Expressions › Auto position animation at the end of the composition
-
Auto position animation at the end of the composition
Avinash Ramanath replied 9 years ago 2 Members · 17 Replies
-
Steve Sierra
May 4, 2017 at 1:06 pmRe-cleaned it up :
a = thisLayer.inPoint;
b = timeToFrames(a);
m = timeToFrames(thisLayer.source.duration) + b – 20;
n = framesToTime(m);
p = framesToTime(20);
x = ease(time ,a, a+p, [960, -540], [960, 540]);
y = ease(time ,n, n+p, [960, 540], [960, -960]);if(time n){y}
😉
-
Steve Sierra
May 4, 2017 at 1:34 pmIt was the copy/past…
here it is again :a = thisLayer.inPoint;
b = timeToFrames(a);
m = timeToFrames(thisLayer.source.duration) + b - 20;
n = framesToTime(m);
p = framesToTime(20);
x = ease(time ,a, a+p, [960, -540], [960, 540]);
y = ease(time ,n, n+p, [960, 540], [960, -960]);if(time n){y}
-
Steve Sierra
May 4, 2017 at 1:35 pmHappened again…. the last two lines are “if(time n){y}”….
a = thisLayer.inPoint;
b = timeToFrames(a);
m = timeToFrames(thisLayer.source.duration) + b – 20;
n = framesToTime(m);
p = framesToTime(20);
x = ease(time ,a, a+p, [960, -540], [960, 540]);
y = ease(time ,n, n+p, [960, 540], [960, -960]);if(time n){y}
-
Steve Sierra
May 4, 2017 at 1:37 pmI think a part of the expression turns into “…”
I’ll change my variable names and re post it… -
Steve Sierra
May 4, 2017 at 1:39 pmHow about this :
InTime = thisLayer.inPoint;
InFrames = timeToFrames(InTime);
m = timeToFrames(thisLayer.source.duration) + InFrames – 20;
n = framesToTime(m);
p = framesToTime(20);
x = ease(time ,InTime, InTime+p, [960, -540], [960, 540]);
y = ease(time ,n, n+p, [960, 540], [960, -960]);if(time < InTime +p){x}
if(time > n){y}InTime = thisLayer.inPoint;
InFrames = timeToFrames(InTime);
m = timeToFrames(thisLayer.source.duration) + InFrames - 20;
n = framesToTime(m);
p = framesToTime(20);
x = ease(time ,InTime, InTime+p, [960, -540], [960, 540]);
y = ease(time ,n, n+p, [960, 540], [960, -960]);if(time < InTime +p){x}
if(time > n){y}
Reply to this Discussion! Login or Sign Up