Skip to main content
Participant
January 23, 2022
質問

Rotate image via radial controller

  • January 23, 2022
  • 返信数 3.
  • 864 ビュー

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.

このトピックへの返信は締め切られました。

返信数 3

c.pfaffenbichler
Community Expert
Community Expert
January 24, 2022

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

Participant
January 25, 2022

Just display

Legend
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
Community Expert
January 23, 2022

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

 

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?