Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Expression: Jump to marker, when counter turns zero

  • Expression: Jump to marker, when counter turns zero

    Posted by Mackie John on January 3, 2019 at 4:05 pm

    I have a marker set to a particular position in timeline. I’m running a counter as follows:

    Now I need to jump to a marker(“End”), when the clocktime turns 0. Can this be done using expression. If yes I need to post it under which property. I’m running the counter under sourceText.

    rate = -1;
    clockStart = parseInt(thisComp.layer(1).text.sourceText.value);

    function padZero(n){
    if (n < 10) return "0" + n else return "" + n
    }

    clockTime = Math.max((clockStart-1*(time-inPoint)),0) ;

    Mackie John replied 7 years, 4 months ago 2 Members · 2 Replies
  • 2 Replies
  • Kalleheikki Kannisto

    January 3, 2019 at 5:56 pm

    Enable time remapping for the layer. Use an expression to set this to the time (property) of the marker “End” if your countdown is 0 and otherwise to value (which is the original pre-expression value).

    Kalleheikki Kannisto
    Senior Graphic Designer

  • Mackie John

    January 3, 2019 at 7:02 pm

    Thanks Kalleheikki, for the prompt response. Is it possible to show an expression example for the same.

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