Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Offsetting Position Expression to InPoint Time

  • Offsetting Position Expression to InPoint Time

    Posted by Obed Ampong on December 31, 2019 at 5:11 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<.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]];

    Obed Ampong replied 6 years, 4 months ago 2 Members · 2 Replies
  • 2 Replies
  • Andrei Popa

    January 4, 2020 at 9:16 am

    Try modifying your 7th line to this:

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

    Andrei
    My Envato portfolio.

  • Obed Ampong

    January 4, 2020 at 3:09 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);

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy