Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Expression for start time and duration

  • Expression for start time and duration

    Posted by Erik Fashingbauer on September 11, 2020 at 12:04 am

    Hi,

    I’m building a motion graphics template for a client that is a simple text typewriter effect.
    Basically for any given line of text I need an expression on the range selector that I can link to a slider control for duration of text typing on from 0-100 and a slider for start time so I can control when the typing animation begins.

    This expression time*100 works by itself to control the duration. I can link the value to a slider ultimately and it works fine.

    I used the following expression to determine start time.

     timeToStart = 2;
      if (time > timeToStart){
          wiggle(3,25);
      }else{
          value;
      }

    this works and the animation starts at 2 seconds. The problem is this expression wiggles the value which is not what I need so I replaced “wiggle(2,25)” with “time*100” but it doesn’t seem to work. I think because the word time is already defining start time, it can’t also be used to define duration maybe?

    Does anyone know how I can make this work??

    Erik Fashingbauer replied 5 years, 11 months ago 2 Members · 2 Replies
  • 2 Replies
  • Andrei Popa

    September 11, 2020 at 12:03 pm

    I think you should use this expression for the “Start” of the typewriter effect. You can link dur and timeToStart to your sliders

    timeToStart = 2;

    dur = 2;

    linear(time,timeToStart, timeToStart+dur,0,100)

  • Erik Fashingbauer

    September 22, 2020 at 8:26 am

    Yes.
    thank you! this worked great!

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