Skip to main content
niyetkhan
Known Participant
December 30, 2021
해결됨

Photoshop script rotate all open images counterclockwise

  • December 30, 2021
  • 3 답변들
  • 3063 조회
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
이 주제는 답변이 닫혔습니다.
최고의 답변: Kukurykus

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

 

activeDocument.rotateCanvas(-90)

 

3 답변

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
Kukurykus답변
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
Kukurykus
Legend
December 30, 2021

He only didn't know exact command, not the method to do it for all documents.

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