• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Issue scaling stroke on path item inside group [JSX]

Community Expert ,
Jan 25, 2023 Jan 25, 2023

Copy link to clipboard

Copied

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.  

TOPICS
Scripting

Views

212

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Guide , Jan 25, 2023 Jan 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);

 

 

Votes

Translate

Translate
Adobe
Guide ,
Jan 25, 2023 Jan 25, 2023

Copy link to clipboard

Copied

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);

 

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 25, 2023 Jan 25, 2023

Copy link to clipboard

Copied

LATEST

Duh, misread the API. Thanks. 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines