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

Script to Rotate and keep aspect ratio and proportions

Engaged ,
Oct 08, 2019 Oct 08, 2019

Copy link to clipboard

Copied

Hello everyone,

I have a smart object, a rectangle, that is sometimes rotated and need to be straightened.

It looks like this:

clipboard_image_0.png

 

I want to rotate it using a jsx or jsxbin script, I need to keep aspect ratio and proportions, and this is probably the result i'm searching for: 2 sides to have a 90 degrees angle together

clipboard_image_0.png

(after this will be acheived I have a script that straightens rectangle to the canvas)

 

 

Thank you all.

TOPICS
Actions and scripting

Views

938

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
Adobe
Community Expert ,
Oct 08, 2019 Oct 08, 2019

Copy link to clipboard

Copied

Is the rotation angle always the same value?

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
Engaged ,
Oct 09, 2019 Oct 09, 2019

Copy link to clipboard

Copied

LATEST
No it changes, I editted the original post of what i'm try to get: at least a 90 degrees angles between 2 sides so afterwards I can straighten it

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