Disable middle click zoom out v1.4


 
This location is for Registered Users Only.
Perhaps you need to login or register.
Contributor: yuri carrara
disable MMB mouse/pen click to fit screen functionality
Requirements:
11.3, 11.2, 11.1, 11.0, 10.5, 10.0 or later
Linux, Mac, Windows
10 Oct 2020
373

Simple hack to disable the middle mouse click functionality that fits to 'screen' the viewer or the node graph. 
I always found that feature super super super annoying.

Add this to menu.py and change the PATH with yours. I couldn't find a way to execute the script properly, I'm not sure why, if you have a better solution plz share.

nuke.menu('Nuke').addMenu('Edit').addCommand('disable mid button','exec(open(r'YOUR_PATH\disableMidMouseButton.py').read())', 'alt+shift+b')

v1.4 nuke 11.3 fix

Please login in order to download these files.

Comments   

 
0 # Guillaume Charron 2020-07-30 15:18
1- The script name itself starts with a capital "D" but in the code line that we have to add to our menu.py starts with "d".

2- I get this error: list index out of range.

Can you help?
 
 
0 # Guillaume Charron 2020-07-30 15:19
I'm on linux, nuke 11.3v6
 
 
0 # yuri carrara 2020-07-31 17:53
I fixed the name, sorry about that.
I'm not sure about the rest, I would try to paste what's inside the script file int the script editor and run from it first
 
 
0 # Felix Pichler 2020-09-11 16:48
I get the same error as Guillaume:

File "", line 52, in
File "", line 45, in
File "", line 15, in findDagWidget
IndexError: list index out of range

Using Nuke 11.3v4 on Win10. Executed the script via shortcut and from within the Script Editor
 
 
0 # yuri carrara 2020-09-18 17:34
Unfortunately it doesn't work on nuke 11.3, I will update it soon.
 
 
0 # Lee Watson 2020-10-08 10:31
Will this disable the middle mouse zoom/pan altogether or just the click zoom out function?
 
 
0 # yuri carrara 2020-10-08 12:09
just the zoom
 
 
0 # Dhruv Shankar 2020-10-09 17:12
This is exactly the thing I've been waiting for somebody to figure out, but the py file here seems to just be the subtitles for Mulan....hahaha . Can you please replace with the correct file?
 
 
0 # Felix Pichler 2020-10-09 18:58
I first thought you were joking, but apparently something went wrong here :lol:
 
 
0 # Luke Duke 2020-10-21 15:05
Yuri, thank you so much for doing this! I tried to figure out how to get rid of this idiotic bug, that thefoundry calls "a feature" for so long! This will definately save me many hours of "diving back into my node tree" :D

Seriously: You deserve a medal!
 
 
0 # yuri carrara 2020-10-21 15:40
ahah, thanks Lukas!
 
 
+3 # grobbio grobbius 2021-01-05 15:08
I'm on Nuke 12.2 win10 and doesn't seem to work correctly.
- It returns a Syntax Error putting it in menu.py
- run from script windows seems to work but every time you use middle mouse button to pan, the panning continues even if you release the button.

tnx
 
 
0 # Sacha Wech 2021-01-10 17:56
Have you been able to get this to work?

I have been wanting to get rid of the single middle click to zoom out for so long.
 
 
0 # Nick Macmillan 2021-01-25 10:29
This is a god send, thank you!!! The constant accidental zooming was driving my nuts.

I'm using 12.0v3 on Windows 10 and it's working fine for me.

I loaded it into the script editor and ran it from there.
 
 
0 # Joshua Nazareth 2023-06-22 15:14
Can someone tell me what do I put in PATH? I am no coding expert. Also the instructions are confusing
 
 
0 # Akshay S R 2023-07-20 19:56
i couldn't figure out too but you can run the script using script editor
 

You have no rights to post comments

We have 4991 guests and 148 members online