Skip to main content
Mattmcquiff
Inspiring
June 10, 2016
Question

Get current ratio of the crop tool.

  • June 10, 2016
  • 1 reply
  • 539 views

This is for part of another script that   c.pfaffenbichler has helped me with, I am looking to get to set the variables to the current ratio settings so that it can be default if my script doesn't fit any of the other rules.

This topic has been closed for replies.

1 reply

JJMack
Community Expert
Community Expert
June 10, 2016

If you mean the current documents canvas aspect ratio that would be app.activedocument.width and  app.activedocument.height.

JJMack
Mattmcquiff
Inspiring
June 10, 2016

No not the canvas. Sorry I mean the last used ratio of the crop tool.

JJMack
Community Expert
Community Expert
June 10, 2016

If the document name does not conform to one you know the aspect ratio to use why would you want to set the aspect ration that was last used?  That setting may have been set for some other project you were doing? When was the crop tool last used by you through Photoshop Crop UI?

In your script you could maintain a set of vars for last use Aspect Ratio I would set that it undefined to begin with  You could also record that into an external file which you can retrieve.

JJMack