Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions expression affecting expression

  • expression affecting expression

    Posted by Gabriel Freitas on May 8, 2023 at 8:16 pm

    Hey guys! I already apologize for the google translation.

    I have following path in a text layer:

    Text layer A > Animatior 1 > Expression Selector 1 > Amount

    where I apply the following expression:

    delay = effect("Delay")("Slider");
    myDelay = delay*textIndex;
    t = (time - inPoint) - myDelay;
    if(t >= 0){
    freq = effect("Frequency")("Slider");
    amplitude = effect("Amplitude")("Slider");
    decay = effect("Decay")("Slider");
    s = amplitude*Math.cos(freq*t*2*Math.PI)/Math.exp(decay*t);
    [s,s];
    }else{
    value}

    To animate texts with transform properties.

    however when I apply the following expression in the position property on text layer B:

    [thisComp.layer("Text layer A").sourceRectAtTime().width + value[0], value[1]]

    in order for this text layer A to follow the width of a text layer B, it has a whip (an odd movement) when the animation of text layer A ends. How can I resolve this?

    Gabriel Freitas replied 4 weeks ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    May 8, 2023 at 9:13 pm

    I set it up, and the animation of Text layer B is pretty much what I’d expect, based on what’s happening to the width of Text layer A as the animation unfolds. Maybe you could post a screen shot of your settings and maybe a shot of the graph editor for Text layer B’s position?

  • Gabriel Freitas

    May 10, 2023 at 2:01 pm

    Hello, Thank you very much for waiting, my company is very busy. I found out it was because I hadn’t parented one layer to another. Thanks!

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