Skip to main content
Participant
Jan 23, 2022 7:48 PM UTC
Question

Rotate image via radial controller

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 is closed to new replies. Start a new post to keep the conversation going.

5 replies

c.pfaffenbichler
Community Expert
Community Expert
Jan 24, 2022 7:10 AM UTC

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

Translate
Participant
Jan 25, 2022 4:23 PM UTC

Just display

Translate
Legend
Jan 24, 2022 6:50 AM UTC

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

Translate
Omar.Fathy
Community Expert
Community Expert
Jan 23, 2022 10:10 PM UTC

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

 

Translate
Participant
Jan 24, 2022 5:35 AM UTC

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?

Translate