Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
If you mean the current documents canvas aspect ratio that would be app.activedocument.width and app.activedocument.height.
Copy link to clipboard
Copied
No not the canvas. Sorry I mean the last used ratio of the crop tool.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
It was more to keep it like the default behaviour of photoshop that it selects the last used settings. Generally speaking the last used setting will likely to be used again.
Copy link to clipboard
Copied
Even one used a week ago?
Find more inspiration, events, and resources on the new Adobe Community
Explore Now