Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Moving Current Time indicator to specific point

  • Moving Current Time indicator to specific point

    Posted by Mackie John on January 4, 2019 at 7:59 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.

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

    January 4, 2019 at 8:10 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

  • Kalleheikki Kannisto

    January 4, 2019 at 8:11 am

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

    Kalleheikki Kannisto
    Senior Graphic Designer

  • Mackie John

    January 4, 2019 at 11:08 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)
    }

  • Mackie John

    January 4, 2019 at 11:25 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

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