Forum Replies Created

  • Boris Norkin

    December 7, 2020 at 3:51 pm in reply to: Need help with an expression please!

    Hi!

    I’d try to create two additional sliders: one that will contain the animation of the sweep effect and the second one with an offset from text borders. Name them accordingly to names in an expression.

    Then move anchor point of a text layer to the middle if its left side.

    After that just apply that expression on a center of the light sweep effect:

    var y = thisComp.layer(“Text”).transform.position[1];
    var x = linear(effect(“SweepProcess”)(“Slider”),0,100,thisComp.layer(“Text”).transform.position[0] – effect(“Offset”)(“Slider”), thisComp.layer(“Text”).transform.position[0] + thisComp.layer(“Text”).sourceRectAtTime().width + effect(“Offset”)(“Slider”));

    [x,y]

    Should work

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