Skip to main content
New Participant
January 23, 2022
Question

Rotate image via radial controller

  • January 23, 2022
  • 3 replies
  • 863 views

Hello! Is there a way to rotate image via radial controller (mini keydial)? For instance, in Krita I can bind ctrl + ] and ctrl + [ to radial controller and rotate image by rotating controller wheel.

This topic has been closed for replies.

3 replies

c.pfaffenbichler
Community Expert
January 24, 2022

Do you want to rotate an image or only its display? 

New Participant
January 25, 2022

Just display

Brainiac
January 24, 2022

An interesting point is that through the script we can set the angle of the canvas (and it will even be saved in the tool settings), but in fact there is no rotation. It can be assumed that the code does not work, but, for example, if we change the rotateAll option, then changing it through the script immediately appears on the toolbar.

 

#target photoshop;

var s2t = stringIDToTypeID;
(r = new ActionReference()).putClass(s2t("rotateTool"));
(d = new ActionDescriptor()).putReference(s2t("target"), r);
(d1 = new ActionDescriptor()).putInteger(s2t('angle'),99)
d.putObject(s2t("to"), s2t("target"), d1);
executeAction(s2t("set"), d, DialogModes.NO);

 

Rotate tool does not assign angle value trougth script

Omar.Fathy
Community Expert
January 23, 2022

What about using the rotate tool or it's Shortcut:

 

New Participant
January 24, 2022

I don't think it is suitable for radial controller. Need to hold R + hold left button + move mouse for rotating.

Controller wheel can be mappped to 2 buttons, one for clockwise and another for counterclockwise rotation. So are there any?