ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Offsetting Position Expression to InPoint Time

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Obed Ampong
Offsetting Position Expression to InPoint Time
on Dec 31, 2019 at 5:11:08 pm

Hello,

Please, I need some help. I am trying to offset position animation to the inPoint time. However, it doesn't seem to work. Could someone kindly help me out?
Thank you.

Regards,

Obed

function easeInOutCubic(t) { return t&lt;.5 ? 4*t*t*t : (t-1)*(2*t-2)*(2*t-2)+1 };

startVal = 2900;
endVal = 960;
startDur = inPoint;
endDur = inPoint+2;

t = linear(inPoint,startDur,endDur,0,1);
e = easeInOutCubic(t);
x = ease(e,0,1,startVal,endVal);

[x, value[1]];


Return to posts index

Andrei Popa
Re: Offsetting Position Expression to InPoint Time
on Jan 4, 2020 at 9:16:27 am

Try modifying your 7th line to this:

t = linear(time,startDur,endDur,0,1);

Andrei
My Envato portfolio.


Return to posts index

Obed Ampong
Re: Offsetting Position Expression to InPoint Time
on Jan 4, 2020 at 3:09:41 pm

Hello Andrei,

Thanks for the reply. I managed to get it done by modifying the last line as you said.

Regards,
Obed

t = linear(time,inPoint+startDur,inPoint+endDur,0,1);


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2020 CreativeCOW.net All Rights Reserved
[TOP]