Forum Replies Created

  • Patrick Evans

    April 29, 2020 at 9:07 pm in reply to: Control the size of one keyframe.

    Ah, a much simpler form of the expression. I was getting hung on the time values and interpolation.

    Thanks for the help Dan!

  • Patrick Evans

    April 29, 2020 at 8:26 pm in reply to: Control the size of one keyframe.

    Hi all,

    I am following through this thread but running into an issue I can’t shake.

    I have 4 keyframes on position on an object:
    Key 1 is centered on the frame: X=1920
    Key 2 is the landing spot X=938
    Key 3 is 11 pixels to the left X=927 (938-11)
    Key 4 is back to landing spot X=938

    I am attempting to add a slider to control the landing position of the object, whereby the starting position would be the same, and the end point (with a bit of overspill) will be controlled by slider.

    For some reason;
    1. My result is that keyframes 2,3 and 4 all get defined as my slider value. The easeout functions as normal.
    1. When I loose the interpolation lines, I can get the values to be correct, but there is no interpolation. I can’t get the linear interpretation to work between key-frame 2 and 3 and 4. The value is consistent – therefore no interpolation.

    Any input super appreciated!

    sVal = thisComp.layer("Adjustment Layer 2").effect("Slider Control")("Slider");

    if (time < key(2).time)
    x = easeOut(time,key(1).time,key(2).time,key(1).value[0],sVal)
    else if (time = key(2).time)
    x = sVal
    else if (time < key(3).time)
    x = linear(time,key(2).time,key(3).time,sVal,sVal-11)
    else if (time = key(4).time)
    X = sVal-11
    else if (time < key(4).time)
    x = linear(time,key(3).time,key(4).time,sVal-11,sVal)
    else if (time = key(4).time)
    x = sVal
    else
    x = (value[0]);
    [x,value[1]]

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