1 Reply Latest reply on Aug 4, 2017 1:23 AM by Mylenium

    Text animate expression inpoint and outpoint

    MoGrapher

      Hey guys,

       

      I'm pretty new to expressions and I've been messing around with this text overshoot one:

       

       

      delay = .03;

      myDelay = delay*textIndex;

      t = (time - outPoint) - myDelay;

      if (t >= 0){

        freq =2;

        amplitude = 100;

        decay = 8.0;

        s = amplitude*Math.cos(freq*t*2*Math.PI)/Math.exp(decay*t);

        [s,s]

      }else{

        value

      }

       

       

      I was wondering if there was a way to alter it so that the effect reverses at the end. Ideally I'd like it to go in the other direction but I could always just split the layer and change the value.

       

      Thanks in advance.