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

Script to Rotate and keep aspect ratio and proportions

Engaged ,
Oct 08, 2019 Oct 08, 2019

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
1.1K
Translate
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

Is the rotation angle always the same value?

Translate
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
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
Translate
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