Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Pin a text layer to the bottom of a scaled shape layer

  • Pin a text layer to the bottom of a scaled shape layer

    Posted by Joel Arvidsson on May 1, 2025 at 2:43 pm

    How can I pin a text layer to the bottom of a scaled shape layer without inheriting the scale?

    Hi!

    I have a shape layer (a vertical bar/rectangle) whose Y scale is driven by a JSON file, making it grow downward over time.

    Now I want to place a text layer at the bottom edge of the shape, so it moves downward in sync as the shape scales. But I don’t want the text itself to scale.

    The problem is:

    • Parenting the text to the shape layer (or to a null object attached to it) causes it to inherit the Y scale, which distorts the text.
    • Even if the null’s position is visually correct, its bounding box scales and so does the text.

    What I’m looking for:

    • A way to track the bottom Y position of the shape as it scales
    • Keep the text moving with it but not scaling

    Any expression based solutions or workarounds would be really appreciated!

    Roland R. kahlenberg
    replied 5 days, 16 hours ago
    4 Members · 5 Replies
  • 5 Replies
  • Dan Ebberts

    May 1, 2025 at 3:45 pm

    You could try a scale expression like this, to counteract the scaling of the parent shape layer:

    s = parent.scale;
    [value[0]/s[0],value[1]/s[1]]*100

    You might need to move the text layer’s anchor point to the bottom of the shape layer to keep gap from changing size as the shape scales.

  • Joel Arvidsson

    May 1, 2025 at 4:53 pm

    Thanks Dan, I should try moving the anchor point to the botton instead of the shape layer. At the moment i pinned a null layer to the shape layer and connect to the null.

  • Dan Smith

    May 2, 2025 at 3:37 pm

    try this :https://aescripts.com/parental-controls/?srsltid=AfmBOoor8H9fbDm04lIYOrB4LyxLuW87UQfNMRL8_z6GuGhvy7jzn9w4

  • Joel Arvidsson

    May 5, 2025 at 9:08 am

    Thanks Dan, i have gotten it to work. I really appreciate it. I went back and tried to just do a simple animation with on the scale on the Transform of the layer instead of the shape layer group. Then I could get the text to follow the edge of the scale perfectly. Then i addaded in the json to drive the animation.
    I read some where that the scale was not as precise as the size on the shapel layer group. But i could not get it to work on there. Now it looks really good and I have built a scale aswell and got it to match perfect with the shape layer that grows downwards to illustrate diggig depth.

  • Roland R. kahlenberg

    May 8, 2025 at 3:57 am

    This Adobe Live video was supposed to provide a solution using the new Null Positional Feature but I can’t understand these two nor did I see all the new features. I could have missed something. Perhaps others may get more mileage –

    https://youtu.be/gyZWVkWKbgs

    Some contents or functionalities here are not available due to your cookie preferences!

    This happens because the functionality/content marked as “Google Youtube” uses cookies that you choosed to keep disabled. In order to view this content or use this functionality, please enable cookies: click here to open your cookie preferences.

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