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

Resize text layer to given width, while maintaining height proportion

Explorer ,
Jul 21, 2019 Jul 21, 2019

Copy link to clipboard

Copied

I've managed to resize a text layer to a given width (in pixels), however, can't seem to figure out how to do so while maintaining a constant width/height ratio.

This seems simple enough, any ideas?

Thanks

doc.activeLayer.resize(newWidth, undefined, AnchorPosition.MIDDLECENTER);

TOPICS
Actions and scripting

Views

770

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 , Jul 21, 2019 Jul 21, 2019

doc.activeLayer.resize(newWidth, newWidth, AnchorPosition.MIDDLECENTER);

Use the same value as it is a percentage.

Votes

Translate

Translate
Adobe
Guide ,
Jul 21, 2019 Jul 21, 2019

Copy link to clipboard

Copied

doc.activeLayer.resize(newWidth, newWidth, AnchorPosition.MIDDLECENTER);

Use the same value as it is a percentage.

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
Explorer ,
Jul 21, 2019 Jul 21, 2019

Copy link to clipboard

Copied

LATEST

Wow, so close. Simple enough. Thanks a lot!

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