-
Stroke width expression?
Hi,
I’m trying to use this expression to keep stroke widths on shapes looking consistent no matter if the shape is scaled up or down.
https://battleaxe.tumblr.com/post/101945073972/maintain-stroke-weight-expression
When I put then in the stroke width and don’t change any of the variables, I get the error: “Error at line 0 in property ‘Stroke Width’ of layer 15…invalid numeric result (divide by zero?)”
When I substitute a number for 0 I get “Error at line 1 in property ‘Stroke Width’ of layer 15… index 5 out of range for stream of dimension 2.”
What am I missing here?
s = transform.scale[4];
scaleFactor = 100/s;
value*scaleFactor;