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, How to, Make It, Problem or error, SDK

Views

493

Likes

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 Professional ,
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

Likes

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)

Likes

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

Copy link to clipboard

Copied

Likes

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 Professional ,
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?

Likes

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