Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions In an expression, is it possible to have the “time” command start at the beginning of a layer?

  • In an expression, is it possible to have the “time” command start at the beginning of a layer?

    Posted by Jonathan Steele on May 23, 2012 at 4:17 pm

    I am trying to create an expression that allows the “time” command start at the beginning of the layer it is in opposed to the beginning of the comp. Is that even possible?

    It is going to be used with several other expressions to bring text onto the screen like an old computer. There are about 200 lines of text so I would like to avoid pre-composing all of them to get it to work.

    Math.round(time*thisComp.layer("Controller").effect("Typing Speed")("Slider"))

    Jonathan Steele replied 14 years, 2 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Fredley

    May 23, 2012 at 4:50 pm

    I think you want:


    var layerTime = 0;
    if (time > thisLayer.inPoint) layerTime = time-thisLayer.inPoint;
    layerTime;

    Dan Fredley

  • Jonathan Steele

    May 23, 2012 at 4:53 pm

    Thank you!

    Works perfectly!

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