Skip to main content
K. Beaver
New Participant
February 22, 2022
Answered

Rotate 1° either direction with a single keystroke

  • February 22, 2022
  • 1 reply
  • 332 views

Hello!

I am placing and arranging photographs on a page for school yearbooks. These are not the grid-arranged panel pages, rather the scattered-style candid images.

 

Right now, I am placing and rotating by grabbing the corner, but I would like to hotkey Rotate 1° Clockwise/Counterclockwise to two of the Function keys. Would this be possible with a script set to a hotkey? I've never written a script before.

 

I have also used prearranged Library Styles with Bridge to place the images into a pre-scattered arrangement, but I honestly find it much faster because of culling and curation to place and rotate them individually.

This topic has been closed for replies.
Correct answer brian_p_dts

The +1 rotation:

try { app.selection[0].rotationAngle += 1 } catch(e) {}

 And the -1:

try { app.selection[0].rotationAngle -= 1 } catch(e) {}

Only select one frame at a time. 

1 reply

Steve Werner
Community Expert
February 22, 2022

I don't know whether it could be scripted but you can separately set keyboard shortcuts for Object > Rotate... [which prompts you for a rotation angle] then press Return...

 

... and to repeat it, create a keyboard shortcut for Object > Transform Again...Transform Again

 

 

 

K. Beaver
K. BeaverAuthor
New Participant
February 22, 2022

I see. I was hoping to find an way to incrimentally adjust, as I wish to map it to a physical knob on my keyboard to rotate a selected object in as few keystrokes as possible.

 

Object > Transform Again is new to me, and solves an unrelated issue so I'm very thankful for that lesson.