View all expressions
Transformation

Maintain Stroke Width During Scaling

Keeps the stroke width consistent even when the layer is scaled, similar to vector graphics in Illustrator.


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

Maintain Stroke Width During Scaling

Practical use case

Essential for icons or shapes where stroke width consistency is key, regardless of layer scaling.

Check out similar expressions

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

a mesh of elegant lines transparent image