ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Expression: Jump to marker, when counter turns zero

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Mackie john
Expression: Jump to marker, when counter turns zero
on Jan 3, 2019 at 4:05:12 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 &lt; 10) return "0" + n else return "" + n
}


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


Return to posts index

Kalleheikki Kannisto
Re: Expression: Jump to marker, when counter turns zero
on Jan 3, 2019 at 5:56:04 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


Return to posts index

Mackie john
Re: Expression: Jump to marker, when counter turns zero
on Jan 3, 2019 at 7:02:08 pm

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


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2019 CreativeCOW.net All Rights Reserved
[TOP]