Keeps the stroke width consistent even when the layer is scaled, similar to vector graphics in Illustrator.
Contributed by:
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
Transformation
Auto-Scaling Text Layer with Width Constraints
Perfect for auto-scaling subtitles, banners, or text that needs to adapt to varying character counts without exceeding a defined width, ensuring consistency in responsive layouts.
Perfect for automating text-based workflows where layers have structured names like “Title - Subtitle” or “Section: Topic,” allowing you to use each part independently.