Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Two independent auto resizing boxes based off two lines of text

  • Two independent auto resizing boxes based off two lines of text

    Posted by John Pritchett on February 15, 2021 at 11:23 am

    I need to create a pretty standard sourceRectAtTime auto resizing box under text, but I need it on two lines, independently. As in Line 1 box is a different width to line 2 box.

    How can I apply the sourceRectAtTime on a box to only line 1, then a different box to line 2?
    Im also playing around with

    text.sourceText.split(‘\r’)[0];

    with no luck…

    TIA

    Filip Vandueren replied 5 years, 2 months ago 2 Members · 1 Reply
  • 1 Reply
  • Filip Vandueren

    February 15, 2021 at 5:44 pm

    If you create a moment in time where only line 1 is visible and 1 where only line 2 is visible, you can use the sourceRectAtTime() for those specific time stamps.

    That time can be for example -1 and -2 seconds.

    You should use a textanimator that sets the scale of the characters to 0 at those times, setting the opacity to 0 does not remove characters from the sourceRect Bounds

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