Skip to main content
brian_p_dts
Community Expert
Community Expert
January 25, 2023
Answered

Issue scaling stroke on path item inside group [JSX]

  • January 25, 2023
  • 1 reply
  • 411 views

Hi all, 

 

I'm trying to resize 75% scale a group item that contains a text frame and a path item. The path item has a 10pt stroke. My code is: 

    app.selection[0].resize(75, 75, true, true, true, true, true);

When I do that, everything scales correctly, except the stroke, which goes to 1pt. I would expect it to go to 7.5pt. I currently have the Scale Effects and Stroke Preference set to On. Any thoughts on what I can change? Don't use resize much. Thanks.  

This topic has been closed for replies.
Correct answer femkeblanco

The last argument in your statement should be the stroke scale factor, not a boolean. 

 

app.selection[0].resize(75, 75, true, true, true, true, 75);

 

 

1 reply

femkeblanco
femkeblancoCorrect answer
Legend
January 25, 2023

The last argument in your statement should be the stroke scale factor, not a boolean. 

 

app.selection[0].resize(75, 75, true, true, true, true, 75);

 

 

brian_p_dts
Community Expert
Community Expert
January 25, 2023

Duh, misread the API. Thanks.