View all expressions
Conditional

Responsive Rectangle Based on Comp Size

Automatically sets a rectangle’s size to match the full dimensions of the composition. Plug it into the Size property of a shape layer rectangle.

Contributed by:


var c = thisComp;
[c.width, c.height]

Responsive Rectangle Based on Comp Size

Practical use case

Great for creating full-screen backgrounds, safe zones, responsive overlays, or any layout element that needs to stretch exactly across the comp.

Check out similar expressions

Data-driven video workflows for After Effects are easier with Plainly.

a mesh of elegant lines transparent image