Remapping the Middle Mouse Button to Right Mouse Button [2.80]


(and._t) #1

Hello,

Is there any easy way to switch the functions of the MMB and RMB?
I come from Rhino and I find it much convenient to have the Right Mouse Button doing the viewport navigation.
I know it might be weird, but I work on a tablet and it’s much easier to keep the basic navigation, and not load scripts constantly between the two programs.
I’ve looked into the Input menu, but there are a ton of modifications, and switching some that seem obvious, is not doing the job.

It would be cool to have a general option to make the switch as Left-Right MB click to select.

Just asking if there is an easier way to do this, instead of going to the Input panel and switching each input one by one.
Rhino has the option the generally switch the viewport manipulation between the two, so I’ll be switching there.


(jesterKing) #2

In the Input section drill on the right into the 3d view settings, then into the 3d view (global). Look for the rotate, pan, dolly and zoom settings.

/Nathan
Your friendly Rhino dev.


(and._t) #3

Hey @jesterKing, I know you from the Rhino forums :slight_smile:

I’ve remapped all of those, but then the middle mouse button doesn’t do anything, and the right mouse button still opens the Object context menu.
Then I’ve searched for anything I could find regarding right mouse button and remapped it to MMB and vice-versa, but the right mouse button still does the same.

IDK. I’ll just swap the behaviour in Rhino, and adapt to it.

Thanks.


(jesterKing) #4

@ANDhitecture, when you change the bindings for a key you will have to go through the entire keymap to see where there might be conflicts - like the RMB in Object Mode for the 3d view.

Here a beginnings of a keymap for Rhino-style navigation in object mode

The repo is a public one, so calling on all Rhino + Blender users to contribute to this keymap.

Edit: I pushed changes with the mesh context menu also remapped (now on ctrl+alt+shift+RMB), so RMB rotate in 3d view in edit mode is possible.


(and._t) #5

I think I did. I went one by one. Maybe not carefully enough.

The “beginnings”? This is practically a full set. Thanks! I’ll try and contribute to as I find stuff.


(jesterKing) #6

Things I didn’t test are the other modes in 3dview: sculpting, grease pencil, weight painting, etc. You probably could just open the .py file in Vim (or any other less powerful editor :wink: ) and search for all occurrances of RIGHTMOUSE - you can also use the search menu in the Input keymap editor of course (set to keybinding, then enter right mouse for all cases that are bound to RMB).


(Dimitar) #7

I’ve got myself one of the 3D Connexion 3-button cad mice, which allows to remap the middle button (seperate from the scroll button per-app, so like you, I use Rhino daily and it’s been pricey, but great investment.

https://www.3dconnexion.co.uk/nc/products/cadmouse-product-line.html

I am sure that there may be cheaper gaming mice that allow to remap buttons per-app.


(jesterKing) #8

I used to have a SpacePilot Pro, but some uninvited guest thought he should loan it without ever returning it back :confused:

It is indeed great, but I never liked the 3dmouse app from 3dconnexion. I always used it with raw data input in Blender, where I participated in getting the NDOF-buttons all bindable directly from in Blender. Also, while great advice on the hardware side it doesn’t help getting a Rhino keymap for the regular mouse+keyboard combo done :wink:


(and._t) #9

I have a 3DConnextion SpaceMouse Compact. I loved it until I tried working with a pen and tablet.
That changed my complete workflow. Now I only work with the pen, the 12 shortcut buttons on the tablet and a Num Pad.
I’ve tried including the 3D mouse in my workflow after, but I find it distracting now, since the pen does the navigation in the viewports much more precisely.

Also, a tip - my mouse is A4 tech - Bloody ML160. It’s ugly as hell but this is THE additional shortcut key mouse. If you are looking for a mouse with many buttons this is the one to go. I have had it for more than 5 years and is still working perfectly, software is kept to date and also the software allows you to completely configure everything.

@jesterKing I was thinking the same thing - to search for RMB instances and swap them.
And I think there will be interference in sculpting mode cos some commands overlap. I don’t know exactly. It’s something in the back of my mind.
I’ll test it out in depth when I get to a new project where Blender will be incorporated.


(Dimitar) #10

@jesterKing, you’re right. I also had a look through at some point for proper reconfig through the extensive hotkey editor, but thought it would be easier to invest in hardware

@ANDhitecture, looks like a nice mouse, but probably takes a while to program it.

I was referring to these mice from 3d connexion, which have just a few buttons to reporgram, but most importantly they have a dedicated middle button that can modified per app:

Clearly, this is overly simple compared to gaming mouse, but the tracking is also amazing.

Anyways, it would be great to see your endeavours of proper right-click pan/rotate :slight_smile:


(Dimitar) #11

I found this suggestion on right click select, which seems pretty relevant. Maybe you can voice your opinion there as well.

image


(jesterKing) #12

I committed several tweaks to the keymap. curve edit mode should now work fine with Rhino-style view navigation.

Also remapped Set 3D Cursor away from Shift-LMB, since that interfered with selection extension. Set 3D Cursor is now under Shift-Ctrl-Alt-LMB.