Forum Replies Created

Page 3 of 3
  • Mackie John

    January 4, 2019 at 4:27 pm in reply to: Change position of Marker on timeline

    THanks for informing DAN.

    Below is a script that I took from one of your answers online, I want modify this when the counter goes 0, the keyframe should play. is it possible. Can you show how to achieve this

    var clockTime // this is my counter value, script not shown here for simplicity.
    // So when this var goes 0, I need the valueAtTime to play.

    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 in reply to: Moving Current Time indicator to specific point

    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

  • Mackie John

    January 4, 2019 at 11:08 am in reply to: Moving Current Time indicator to specific point

    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 3, 2019 at 7:02 pm in reply to: Expression: Jump to marker, when counter turns zero

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

Page 3 of 3

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