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

Change crop ratio values with script

New Here ,
May 24, 2021 May 24, 2021

Copy link to clipboard

Copied

Hi is it possible to change crop ratio with scipt, im trying to add crop preview using script but i didnt find anything in the documentation, only crop()

 

Stewcha5EA5_0-1621875020154.png

 

 

TOPICS
Actions and scripting , SDK

Views

747

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 ,
May 24, 2021 May 24, 2021

Copy link to clipboard

Copied

Are you creating some kind of interactive cropping script that will display some kind of cropping mask the user can interactivity modify.   All you showed in your post a 1:2 Aspect Ratio crop ratio you seem to want to change with a script. You gave no details about the preview view the script is to display where the preview crop would be be positions or what size relative to the image size.

JJMack

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
New Here ,
May 24, 2021 May 24, 2021

Copy link to clipboard

Copied

Im creating a script where script create crop preview mask, user can move image left, right or up, down hit enter and script will continue to run (i will probably need to warp this into extension because script cant be paused)

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
LEGEND ,
May 24, 2021 May 24, 2021

Copy link to clipboard

Copied

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
Valorous Hero ,
May 24, 2021 May 24, 2021

Copy link to clipboard

Copied

LATEST

For which photoshop are you interested?

What parameters of the tool do you want to set?

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