Skip to main content
Participant
May 24, 2021
Question

Change crop ratio values with script

  • May 24, 2021
  • 3 replies
  • 873 views

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()

 

 

 

This topic has been closed for replies.

3 replies

Legend
May 24, 2021

For which photoshop are you interested?

What parameters of the tool do you want to set?

Kukurykus
Legend
May 24, 2021
JJMack
Community Expert
Community Expert
May 24, 2021

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

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)