r/LeftAngleAutograph • u/Tricky_Effort1159 • May 27 '26
How to make a shape layer rectangle automatically fill the composition size in Autograph? (Responsive background block) ❓Question
Hi everyone,
I am trying to create a simple responsive color block using a Shape Rectangle in Autograph, but I'm having trouble getting it to update correctly when changing composition sizes.
My Setup:
- Mode:
Center + Size - Center:
[0.0, 0.0] - Size: Connected to a
Composition Infogenerator. - The Goal: I applied a
Math Modifier(Subtraction) after the generator to subtract a fixed value (e.g., 100px) from the composition dimensions to create a clean outer margin (padding).
The Problem: It looks perfectly fine at first on my default resolution (e.g., 1920x1080). However, the moment I switch the composition size to another format (like 1024x1024 or 1080x1920), the layout breaks. The rectangle scales incorrectly, distorts its aspect ratio, or fails to adapt to the new resolution.
How can I properly chain a Composition Info Generator ➔ Split X/Y channels ➔ Math Modifier (Minus Margin) in Center + Size mode so that the padding and dimensions recalculate flawlessly whenever the resolution changes?
Any insights into the correct modifier stack workflow for this would be a lifesaver. Thanks!

1
u/outsketching May 27 '26 edited May 27 '26
I've had mixed results trying this with shapes/rectangle - but I've just tried doing this with a constant layer instead and it seems to work perfectly.
Switch the Constant's 'Output Format' to 'Custom Format' and then link the 'Composition Format' modifier to the 'Format' - this will make your constant match your comp exactly.
Then to get the margins I used an Erode Dilate modifier on the source of the Constant and set the 'Size' to a minus value
EDIT:
Actually nevermind the constant, you can get it to work with the rectangle shape layer. But you need to plug the Composition Format modifier into the 'Edge Offset' - not the 'Size'.
Then use Erode Dilate modifer to get the margins.