Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects LWR 3rd expression

  • LWR 3rd expression

    Posted by Quico Encinias on October 31, 2006 at 12:21 am

    I am trying to set up an expression that would animate on a lower 3rd with variable distances in X. I have a variable that can measure the width of the lower 3rd because it is changing depending on the text length. I then want to plug this number into my position keyframes so that it will slide in the correct length. i have 4 position keyframes and would also like to adjust the timing. 1- off screen 2- Ease In to position 3- Ease out of position 4- Back to off screen. What i dont want is for my variable number to affect the the first and last keyframe, but i still want to keep the eases. i can get it to work using the “easeIn” expression, but cant get both the easeIn and easeOut expression to work at the same time.

    thanks in advance, i figure somebody has set this up before. it would be nice if you could apply an expression to a specific keyframe.
    quico

    Filip Vandueren replied 19 years, 6 months ago 2 Members · 3 Replies
  • 3 Replies
  • Filip Vandueren

    October 31, 2006 at 12:42 am

    Do you absolutely have to do this with expressions ? This seems like just setting 4 keyframes, and unless your text is centered, you would only have to change 2 of those 4 depending on the width of your layer.

    Anyway:
    The ease() function combines both In and Out, if that’s what you’re looking for.

    Be aware though that an ease implies a standstill (velocity=0) at the time of the keyframe, that might not be what you want.
    Lately I’ve grown more and more fond of using the smooth() function on linear keyframes.

  • Quico Encinias

    October 31, 2006 at 2:55 am

    Well im trying to make it as steamlined and error free as possible. The setup is that you change the text and slide one guide layer to match the left edge of the text, then you dont have to select keyframes and/or be parked on them when you move the positioning.then you are ready to render.
    this is what ive figured out so far in order to have the easein (on keyframe 2) and easeout (on keyframe 3) be part of the same expression

    ——————-
    key1 = key(1).time;
    key2 = key(2).time;
    key3 = key(3).time;
    key4 = key(4).time;
    keymid = (key3-key2)/2 + key2;
    slidevar = 720 – thisComp.layer(“guidefortext”).position[0] ;

    if (time < keymid) { [easeOut(time, key2, key1, 0, position[0] + slidevar),position[1]]; } else { [easeIn(time, key3, key4, position[0] + slidevar, 0), position[1]]; } ------------

  • Filip Vandueren

    October 31, 2006 at 3:07 am

    Oh I see, the values of keyframes 2 and 3 should be the same.

    Not sure why you reversed the order of key 2 and 1 in the first ease.
    Should work fine other than that.

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