Skip to main content
Participant
March 31, 2017
Answered

Can the size of a shape layer be defined by the size of a text layer (using an expression)?

  • March 31, 2017
  • 2 replies
  • 342 views

Hi everyone,

I'm working on projects that involves many text boxes - text on top, and a rounded-rectangle shape layer behind. The distance between the edge of the shape layer and the edge of the text layer needs to be consistent (for the moment, let's say 20 pixels separation all the way around). Is it possible for the size of the shape layer to be defined by the size of the text layer, so that I don't have to (tediously) measure out the size of the shape layer every time I have a new text element? Is this something that I can do with an expression?

Thanks!

    This topic has been closed for replies.
    Correct answer Mylenium

    Look up the sourceRectAtTime() expression and its usage.

    Mylenium

    2 replies

    Participant
    March 31, 2017

    Thanks!

    Mylenium
    MyleniumCorrect answer
    Legend
    March 31, 2017

    Look up the sourceRectAtTime() expression and its usage.

    Mylenium