ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Moving Current Time indicator to specific point

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Mackie john
Moving Current Time indicator to specific point
on Jan 4, 2019 at 7:59:44 am

How to I use expressions to jump the current time indicator. Example I place a marker towards the end of the clip. Now have a counter running, when it reaches a certain level I want the current time indicator to jump to the marker (which is placed end of clip).

How can this be achieved. If anybody including DAN can guide me please. Will be grateful.

Thanks.


Return to posts index

Kalleheikki Kannisto
Re: Moving Current Time indicator to specific point
on Jan 4, 2019 at 8:10:11 am

You can't move the time indicator itself, but you can enable time remapping for the layer and use an expression to change the relative time to the same effect.

Kalleheikki Kannisto
Senior Graphic Designer


Return to posts index

Kalleheikki Kannisto
Re: Moving Current Time indicator to specific point
on Jan 4, 2019 at 8:11:50 am

Depending on what you need to do, the valueAtTime() may work as well.

Kalleheikki Kannisto
Senior Graphic Designer


Return to posts index


Mackie john
Re: Moving Current Time indicator to specific point
on Jan 4, 2019 at 11:08:47 am

I Tried to do a test with what you mentioned valueAtTime. I did a null object and put a marker on it. Created three solid layers and did key frames for it. Used the below expression in the opacity property of each layer. Now when I play nothing happens to the solid layers. The just keep the opacity level of 100. I created a key frame of 100 at 0sec (timeline) and 0 and 10sec (timeline). If I move the marker away or even on the keyframe nothing happens. What do you think i'm doing wrong here.

L= thisComp.layer("EDIT");
n = 0;
if (L.marker.numKeys > 0){
n = L.marker.nearestKey(time).index;
if (L.marker.key(n).time > time){
n--;
}
}if (n == 0){
valueAtTime(0);
}else{
t = time - L.marker.key(n).time;
valueAtTime(t)
}


Return to posts index

Mackie john
Re: Moving Current Time indicator to specific point
on Jan 4, 2019 at 11:25:27 am

Ignore this please I got it working. Was using a composition marker, didn't realize we need to use a layer marker. Thanks for your help. This is what I needed


Return to posts index

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