Maintain Stroke Width expression

When applied to the Stroke Width property, this expression ensures that the stroke width of a layer remains consistent even when you scale the layer. It’s a valuable tool for maintaining the visual integrity of stroked elements..

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

Pro tip: Go to AEJuice Pack Manager – Expressions Pack to apply this expression in 1 click. Here are direct links for the latest plugin version:
Windows / macOS

Click here to receive more tips by email.