Skip to main content
Participating Frequently
February 20, 2025
Question

Link width of two shapes inside one shape layer

  • February 20, 2025
  • 0 replies
  • 77 views

Hello,

I'm trying to design this responsive text box but can't get it quite right.

I have a shape layer containing the following shapes - 
(Group 1) - 

- Color (Rectangle)

- Base (Rectangle)

- Stroke

 

The "COLOR" shape is a thin highlight at the bottom of the box. I need to link the width of that shape to the width of the "BASE" shape. 

The "BASE" shape is controlled by an expression to make it responsive to a text layer. The main issue I'm having is the "BASE" shape is rounded. I can copy the same sourceRectAtTime expression to the "COLOR" shape but then can't shrink the height using the transfrom property without smooshing the rounded corners. So I'm hoping I can just link the X property in the "COLOR" shapes Size controller to the X property of the "BASE" shape.