Expression Copied to Clipboard! 🗂
← Back to Expressions

Maintain Stroke Width - After Effects Expression

Maintain stroke width while scaling layers. Apply to stroke width property

Maintain Stroke Width

value / length(toComp([0,0]), toComp([0.7071,0.7071])) || 0.001;

Copied to Clipboard!

How to Use

Apply this expression to the Stroke Width property of any shape layer to maintain the visual thickness of the stroke, no matter what scaling is applied to the layer.

Credit

Expression by the genius Adam Plouff