Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity › Forums › Adobe After Effects Expressions › [help]How make a Gradient Ramp effect follow Text

  • [help]How make a Gradient Ramp effect follow Text

    Posted by Kim sangyeop on August 24, 2021 at 1:16 pm

    1. I made a text layer. (“text1”)

    2. Applies Gradient Ramp to “text1”

    3. Gradient Ramp of property Start of Ramp add expression to

    var s = thisLayer;

    var rect = s.sourceRectAtTime();

    toComp([rect.left, rect.top])

    4. Gradient Ramp of property End of Ramp add expression to

    var s = thisLayer;

    var rect = s.sourceRectAtTime();

    x = s.toComp[(rect.left+rect.width,0)][0];

    y= s.toComp([rect.left, 0])[1];

    [x,y]

     

    i want to end of ramp point is perfectly right and bottom.

    plz help me

    Kim sangyeop replied 5 years ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    August 24, 2021 at 3:02 pm

    I’m not sure this is what you’re after but maybe like this for upper left:

    r = sourceRectAtTime(time,false);

    [r.left, r.top]

    and like this for lower right:

    r = sourceRectAtTime(time,false);

    [r.left + r.width, r.top + r.height]

  • Kim sangyeop

    August 25, 2021 at 12:32 am

    Your advice was very helpful.

    I really appreciate it!!

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