It is currently Thu Jul 04, 2024 3:46 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 14 posts ] 
Author Message
 Post subject: How to add new view rotation options?
PostPosted: Wed Nov 03, 2021 5:06 pm  (#1) 
Offline
GimpChat Member

Joined: Nov 03, 2021
Posts: 7
GIMP Version: 2.10.28
Operating System: Linux
OS Version: Manjaro Latest
GIMP Experience: Basic Level



Hello everyone.

There is an option to rotate the view 90 degrees CW and CCW, 15 degrees CW and CCW, as well as 180 degrees. Also, there is an option to invoke an "arbitrary rotation menu", where you can choose any angle you want to rotate the view with.
Is it possible to add new rotational angles somehow? I'm asking for 5 or even 1 degree rotation, CW and CCW respectively.
The reason I ask is that I have a tablet with the dial, which you can turn, and it will zoom-in or zoom-out the image for you, as well as it can rotate it.
Edit: i.e. I need to assign those 1 or 5 degree turns to the hotkeys. I.e. ctrl+[ and ctrl+].

Are there any plugins for that? Or some options I can tweak in order to gain that functionality? So far exhaustive googling didn't yield any result in that regard.

Thank you.


Last edited by Xeizzeth on Wed Nov 03, 2021 11:31 pm, edited 1 time in total.

Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: How to add new view rotation options?
PostPosted: Wed Nov 03, 2021 5:56 pm  (#2) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 13068
Location: Native to NYC living in Arizona, Gimp 2.8 & 2.10, Win 11 PC.
Xeizzeth wrote:
GIMP Version: 2.10.28
Operating System: Linux
OS Version: Manjaro Latest
GIMP Experience: Basic Level



Hello everyone.

There is an option to rotate the view 90 degrees CW and CCW, 15 degrees CW and CCW, as well as 180 degrees. Also, there is an option to invoke an "arbitrary rotation menu", where you can choose any angle you want to rotate the view with.
Is it possible to add new rotational angles somehow? I'm asking for 5 or even 1 degree rotation, CW and CCW respectively.
The reason I ask is that I have a tablet with the dial, which you can turn, and it will zoom-in or zoom-out the image for you, as well as it can rotate it.

Are there any plugins for that? Or some options I can tweak in order to gain that functionality? So far exhaustive googling didn't yield any result in that regard.

Thank you.

Is this option in reference to the rotate tool?

There is this I found in GIMP Doc...

https://docs.gimp.org/2.10/en/gimp-laye ... trary.html

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
 Post subject: Re: How to add new view rotation options?
PostPosted: Wed Nov 03, 2021 7:28 pm  (#3) 
Offline
GimpChat Member

Joined: Nov 03, 2021
Posts: 7
Wallace wrote:
Is this option in reference to the rotate tool?

Well, I mentioned this tool in my post, and it's not what I'm looking for.
I'm looking for adding two more options for rotation next to already existing options of 15, 90, 180 degrees.


Top
 Post subject: Re: How to add new view rotation options?
PostPosted: Wed Nov 03, 2021 11:02 pm  (#4) 
Offline
Global Moderator
User avatar

Joined: Apr 01, 2012
Posts: 7745
Location: On the other side of this screen
The rotate tool :rot works in .10 degree increments
Image

_________________


Top
 Post subject: Re: How to add new view rotation options?
PostPosted: Wed Nov 03, 2021 11:07 pm  (#5) 
Offline
GimpChat Member

Joined: Nov 03, 2021
Posts: 7
sallyanne wrote:
The rotate tool works in .10 % increments

The second guy who mentioned it despite me mentioning it in the original post.
Yes, it does rotate even in the tiniest of increments. Now tell me how to assign 0.10% CW and CCW rotation to the hotkeys using this tool (or not).


Top
 Post subject: Re: How to add new view rotation options?
PostPosted: Wed Nov 03, 2021 11:27 pm  (#6) 
Offline
Global Moderator
User avatar

Joined: Apr 01, 2012
Posts: 7745
Location: On the other side of this screen
Oops just saw you mentioned rotate VIEW.
Image

_________________


Top
 Post subject: Re: How to add new view rotation options?
PostPosted: Wed Nov 03, 2021 11:30 pm  (#7) 
Offline
GimpChat Member

Joined: Nov 03, 2021
Posts: 7
Well yes, I saw that menu and ofc tried to make it work. But I didn't see there an option to assign rotation to the hotkeys.
I.e. turn 1 degree CCW is assigned to ctrl+[
and turn 1 degree CW is assigned to ctrl+].


Top
 Post subject: Re: How to add new view rotation options?
PostPosted: Wed Nov 03, 2021 11:52 pm  (#8) 
Offline
Global Moderator
User avatar

Joined: Apr 01, 2012
Posts: 7745
Location: On the other side of this screen
Here is something mentioned by one of our members (rich)

[For anyone interested
The shortcuts are held in your Gimp user profile the file menurc
It is a text file but not the most readable. With a little editing and sorting to make it more readable you can make a list with your current setup.]

You can see if you can make anything of it. You may even be able do do this yourself by adding something in the Gimp code but I can't help with that.

_________________


Top
 Post subject: Re: How to add new view rotation options?
PostPosted: Wed Nov 03, 2021 11:53 pm  (#9) 
Offline
GimpChat Member

Joined: Nov 03, 2021
Posts: 7
Thank you! Will try to do that.


Top
 Post subject: Re: How to add new view rotation options?
PostPosted: Thu Nov 04, 2021 3:57 am  (#10) 
Offline
GimpChat Member

Joined: Mar 04, 2011
Posts: 2438
That is View -> Rotate.
Came in with Gimp 2.10 and is in the shortcuts, As it says, rotates what you see but does not alter the image. You can assign a key to bring up the dialogue.

Attachment:
rotate.jpg
rotate.jpg [ 72.09 KiB | Viewed 1554 times ]


Do not confuse with the Tools -> Rotate which rotates the image (and moves the pixels about). A shortcut can bring up that dialogue
Unfortunately, View-> Rotate is an internal operation and AFAIK not scriptable. A plugin would enable some menu options to be added.

Bottom line. You would have to ask the Gimp developers for an enhancement.

_________________
Image


Top
 Post subject: Re: How to add new view rotation options?
PostPosted: Thu Nov 04, 2021 4:00 am  (#11) 
Offline
GimpChat Member

Joined: Nov 03, 2021
Posts: 7
Thank you for your reply, but the popping-up dialogue is definitely not something I need when I turn the wheel on my tablet. Obviously.

And yes, looks like I need to ask developers for an enhancement.


Top
 Post subject: Re: How to add new view rotation options?
PostPosted: Thu Nov 04, 2021 4:14 am  (#12) 
Offline
GimpChat Member

Joined: Mar 04, 2011
Posts: 2438
Well Shift-Middle Mouse button will rotate the view as you drag the mouse, but difficult to limit to small/even increments
..and Shift-Ctrl-Middle Mouse Button rotates in 15 deg increments - too large for your requirement.
Try a Shift-Alt-Middle Mouse button, seems to use smaller angles (or it might be my eyesight ;) )

Ask here: https://gitlab.gnome.org/GNOME/gimp/-/issues

_________________
Image


Top
 Post subject: Re: How to add new view rotation options?
PostPosted: Thu Nov 04, 2021 4:26 am  (#13) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4756
Xeizzeth wrote:
GIMP Version: 2.10.28
Operating System: Linux
OS Version: Manjaro Latest
GIMP Experience: Basic Level



Hello everyone.

There is an option to rotate the view 90 degrees CW and CCW, 15 degrees CW and CCW, as well as 180 degrees. Also, there is an option to invoke an "arbitrary rotation menu", where you can choose any angle you want to rotate the view with.
Is it possible to add new rotational angles somehow? I'm asking for 5 or even 1 degree rotation, CW and CCW respectively.
The reason I ask is that I have a tablet with the dial, which you can turn, and it will zoom-in or zoom-out the image for you, as well as it can rotate it.
Edit: i.e. I need to assign those 1 or 5 degree turns to the hotkeys. I.e. ctrl+[ and ctrl+].

Are there any plugins for that? Or some options I can tweak in order to gain that functionality? So far exhaustive googling didn't yield any result in that regard.

Thank you.


Not as far as I know in the factory Gimp. And plugins, by design, cannot tweak the UI.

This said with the mouse it is much faster to use Shift-MiddleButton-Drag to tilt the canvas to any angle, so if your pen can emulate the middle button this could be a batter solution.

_________________
Image


Top
 Post subject: Re: How to add new view rotation options?
PostPosted: Thu Nov 04, 2021 4:50 am  (#14) 
Offline
GimpChat Member

Joined: Nov 03, 2021
Posts: 7
Looks like the only solution for now. And yes - the tablet has additional 8 buttons so it can emulate that. Pity, but whatever - we have what we have now.

Will ask devs later on in the git about this feature.


Top
Post new topic Reply to topic  [ 14 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) Rotation of a 2D png image - SOLVED

11

No new posts Attachment(s) Rotation Problem: Empty Frame rotates, not image

4

No new posts Attachment(s) view a path when it is imported

12

No new posts Tool Options Lag

1

No new posts Redocking tool options

3



* Login  



Powered by phpBB3 © phpBB Group