Skip to main content
Participating Frequently
March 28, 2023
Question

stroke width - scaling

  • March 28, 2023
  • 3 replies
  • 934 views

Hi!

 

I am trying to scale a rectangle asymettrically and trying to keep the same stroke.

I am using this expression to keep it so, but if I disalble the proportion chain and keep y 100% this happens.

 

Any idea why?

 

thanks in advance 🙂

This topic has been closed for replies.

3 replies

Mylenium
Legend
March 29, 2023

Move the stroke outside the path group so it is applied after the transform.

 

Mylenium 

Community Expert
March 28, 2023

If you use Scale to change the shape of a rectangle, then the stroke proportions will change. If the Rectangle is a Parametric shape with a size value, you just change the size, and the stroke will stay constant. 

 

If the Rectangle is a vector path, you have to use a complex expression to change the size of the path based on a slider or point controls, or you have to select the vector path and use the Transform tool to change the size manually.

 

Attached files are a pain to look at. Please embed them by dragging them to the reply field or using the toolbar. Cropped screenshots that don't show us the modified properties of the problem layers are pretty useless for diagnosing problems. I am only guessing that the rectangle you are showing is a Parametric shape created with the Rectangle tool. 

 

Participating Frequently
March 28, 2023
expression ---> value / length(toComp([0,0]), toComp([0.7071,0.7071])) || 0.001;

 

Participating Frequently
March 28, 2023

it looks like the expression is forcin the stroke somehow

LW0121
Inspiring
May 23, 2024

I use this expression many times but recently, I noticed in After effects 2024, it reports "Error: Couldn't turn result into numeric value". Does anyone know how to perfect it?