Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Move Current Time Indicator Forward to a specific Frame

  • Move Current Time Indicator Forward to a specific Frame

    Posted by Mackie John on November 22, 2020 at 6:51 am

    If I want to move the CTI forward to a specific Frame. What are my choices using expressions? I have following script which does a counter. Once a Counter reaches the time. I want to move the CTI to a particular FRAME on the timeline. How can I do this using expressions:

    clockStart = parseInt(comp(“main”).layer(5).text.sourceText.value);

    if (time < clockStart)
    0
    else if (time >clockStart)
    {
    t= linear(time,0,clockStart,key(1).value,key(1).value-(clockStart-time-0.5));
    valueAtTime(t);
    }

    Kalleheikki Kannisto replied 5 years, 5 months ago 3 Members · 2 Replies
  • 2 Replies
  • Stephen Dixon

    November 22, 2020 at 7:37 am

    You can’t change the current time of a comp with expressions, you can only set the value of the layer properties that they’re applied to.

    You can use scripts to change the time, but that won’t have any effect at render time, it would be as if you changed the time yourself with the UI.

  • Kalleheikki Kannisto

    November 23, 2020 at 5:52 pm

    You can precomp everything and use Time Remapping, after which you can you an expression for Time Remapping to change the current time by an offset value if certain condition is met. CTI wont move but the result will be as if it did.

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