Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Forums Adobe After Effects Expressions control slider keyframe with MARKER

  • control slider keyframe with MARKER

  • Ehsan Adham

    November 28, 2019 at 8:07 pm

    Hi Every one

    i have one null layer, it have slider control and it have two keyframe,

    how can i control this keyframes with layer marker?

  • Andrei Popa

    November 29, 2019 at 6:45 am

    If you plan to use it like this, you don’t even need keyframes. This expression will take the values from the markers comments. Just make sure the comments are always a number.

    v1 = parseInt(marker.key(1).comment);
    v2 = parseInt(marker.key(2).comment);
    t1 = marker.key(1).time;
    t2 = marker.key(2).time;
    (isNaN(v1+v2)) ? value : linear(time,t1,t2,v1,v2);

    Andrei
    My Envato portfolio.

  • Ehsan Adham

    November 29, 2019 at 12:01 pm

    Taaaaanks Andrei

    Now i have two Question:

    1. how can i use this two MARKER like toggle hold keyframe ?
    2. i want name this MARKERS to for example clip1, clip2. How can i control the value of MARKERS?

    Again Tanks My Friend

  • Andrei Popa

    November 29, 2019 at 12:17 pm

    What do you mean use them like toggle hold keyframe? To have the slider the value of first keyframe until it reaches the second and then snap to that value?

    And if you want to rename the markers as you please, you can re-create those 2 keyframes and add this expression instead. The values are now taken from the keyframes.


    v1 = valueAtTime(key(1).time);
    v2 = valueAtTime(key(2).time);
    t1 = marker.key(1).time;
    t2 = marker.key(2).time;
    (isNaN(v1+v2)) ? value : linear(time,t1,t2,v1,v2);

    Andrei
    My Envato portfolio.

  • Ehsan Adham

    November 29, 2019 at 1:25 pm

    OH MU GOD
    TAAAAAAAAANKS ANDREI

    YES, My mean: For Example Marker “clip1” value is 150 in time 00:01. So i want go to time 00:02 and Marker “clip2”. Now Value should be 200. i don’t want that value be changed between two marker.
    Like Toggle Hold Keyframe.

    Many Tanks My Friend

Viewing 1 - 5 of 5 posts

Log in to reply.

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