Skip to main content
niyetkhan
Known Participant
December 30, 2021
Answered

Photoshop script rotate all open images counterclockwise

  • December 30, 2021
  • 3 replies
  • 3064 views
Hello!

I have a question:
can a script rotate all open images counterclockwise?
It has become a daily routine for me, and takes a long time...
I would be very grateful for your answers,
Niyetkhan
This topic has been closed for replies.
Correct answer Kukurykus

Modify 'apply to all open documents' script I shared with you in other thread, by using:

 

activeDocument.rotateCanvas(-90)

 

3 replies

Trevor.Dennis
Community Expert
Community Expert
December 30, 2021

It would surely be easier to do it in Bridge.

Stephen Marsh
Community Expert
Community Expert
December 30, 2021

I agree... As long as all the software in the viewing and editing chain respects the orientation metadata.

 

Edit: forgot to mention that if rotated in Bridge and then re-saved in say Photoshop, the new rotation will be "baked in" and no longer reliant on metadata for rotation.

Kukurykus
KukurykusCorrect answer
Legend
December 30, 2021

Modify 'apply to all open documents' script I shared with you in other thread, by using:

 

activeDocument.rotateCanvas(-90)

 

JJMack
Community Expert
Community Expert
December 30, 2021

I think what the op wanted would  be mote like this:

 

 

 

 

 

if (documents.length){for (var i=0;i<documents.length;i++){documents[i].rotateCanvas(-90);}}

 

 

 

 

 

 

JJMack
JJMack
Community Expert
Community Expert
December 30, 2021

Stephen_A_Marsh 'tried' to explain it but you don't understand. Read text of my first answer.


Modify 'apply to all open documents' script I shared with you in other thread, by using:

 

Without the link it hard to to tell what else the share script would do.  Its a one liner in the first place

if (documents.length)for(var i=0;i<documents.length;i++)documents[i].rotateCanvas(-90)
JJMack
JJMack
Community Expert
Community Expert
December 30, 2021

Does it have to be a Script. A simple one step action is all that is needed.  Menu Image>Image Rotation>90  Counter Clockwise.

 It would be easy to script that batch process. But it will take you a long time to write that script for you asked that question so you do not know how to Script Photoshop.  Scripting is no an easy task like recording an action.

JJMack