nuke_nodegraph_utils v1.0


 
This location is for Registered Users Only.
Perhaps you need to login or register.
Contributor: Erwan Leroy
Compilation of node graph utilities: Align nodes, scale nodes, mirror nodes, create backdrops, easily change labels, etc...
Requirements:
13.1, 13.0, 12.2, 12.1, 12.0, 11.3, 11.2, 11.1, 11 or later
05 Jun 2022
1090

watch the video Tool Video

 

Collection of utilities for manipulating Nuke’s NodeGraph

Installation

Easy install

Download the whole .zip file of the project and uncompress it somewhere, for example C:\Users\my_user\.nuke\node_graph_utils.
In your init.py (see https://learn.foundry.com/nuke/developers/131/pythondevguide/startup.html for more info on init.py), add the following line:

nuke.pluginAddPath(r'C:\Users\my_user\.nuke\node_graph_utils')

(Ensure you adjust the path to your own install path. It should point to where the provided menu.py lives.)

Custom Install

You could modify the installation to fit your needs. The simplest modification you could do is to exclude the experimental features.
To do so, locate the provided menu.py and change the line:

node_graph_utils.install_menus(icons_root=ICONS_ROOT, install_experimental_menus=True)

to

node_graph_utils.install_menus(icons_root=ICONS_ROOT, install_experimental_menus=False)

If you would like, you could also store the icons in a different location and provide the icons path to this method.

For advanced users, using the pre-made install_menus method is optional and all fucntions can be exposed manually from scratch.

Customizing keyboard shortcuts

All the menus and keyboard shortcuts are defined in the install_menus method, which lives in the package’s __init__.py file.
By default, I have mapped the shortcuts to be used along with the meta key (windows key on keyboards).
If for example you wanted to remap the “AutoBackdrop” command to Ctrl+B instead of my default Alt+B (because somehow you use nuke’s Branch command, which normally has the Alt+B shortcut).
You would locate the line where the command is added:

backdrop_menu.addCommand('AutoBackdrop', backdrops.auto_backdrop, 'alt+b', shortcutContext=2, icon='Backdrop.png')

and change the shortcut like so:

backdrop_menu.addCommand('AutoBackdrop', backdrops.auto_backdrop, 'ctrl+b', shortcutContext=2, icon='Backdrop.png')
Please login in order to download these files.

Comments   

 
+4 # Adrian Pueyo 2022-05-26 08:34
Thanks for this Erwan, the scale UI is awesome!!

One idea/feature request on that one would be to have the ability to not scale from the bounds of the nodes but instead by their centres. That way it you select a bunch of nodes and you scale up to the left, if the right part is connected on a vertical pipe they wouldn't get out of position but the last column on the right would stay still.
 
 
+1 # Ben McEwan 2022-05-28 01:55
Nice to have all this functionality in a single download. The Node Scaling UI is super helpful!
 
 
0 # Ari Reisner 2022-06-06 01:53
The houdini-like y snip is brilliant and so oddly satisfying!
 
 
+2 # Frank Rueter 2022-06-07 02:32
On Centos 7 the entire nodegraph goes black when I invoke the scale tool. Damn, was so looking forward to this. Any idea what might be causing that?
 
 
0 # argenis santos 2022-06-14 04:41
the same happens to me :sad:
 
 
0 # Frank Rueter 2022-06-14 22:13
Are you on linux as well? Such a shame cause other thatn that it works great (from what I can tell). The snipping/drawin g connections have the same issue. They do work but the DAG goes black as soon as I hold down the respective hotkey. Maybe that is a hint where to look?
 
 
+1 # Marty Blumen 2022-06-23 01:47
Try turning on Centos Desktop Effects, Alt+Shift+F12 - this allows GL transparency to work.
 
 
0 # romain biermann 2022-06-16 06:43
Thank you very much for this, the scaling is really really nice.
 
 
0 # Joe Censoplano 2022-06-28 18:36
every time I go to the snip tool or draw tool it shows all the previous lines that I used to draw connections or cut connections. anyway to get rid of this ? I got lines all over my graph hahah
 
 
0 # Philippe HUBERDEAU 2022-08-23 16:12
The scale _nodes is a must have, brilliantly done Erwan !
 
 
0 # Jan Kanta 2022-09-08 08:52
Hey i have to say Scale node doesn't work when view is full screen with alt+s
 
 
0 # Andrea Geremia 2022-10-05 12:15
I used it yesterday at work for the first time and I wanted to leave you this feedback: so handy and intuitive!

Really Thank you for this tool. I will save so much time, instead of move node by node :D
 
 
0 # bin zhuang 2023-05-09 09:28
There will be some minor bugs on 4K monitors with UIscale
 
 
0 # bin zhuang 2023-05-10 06:56
The drawing connection does not work on the second monitor
 
 
0 # bin zhuang 2023-06-01 03:20
with nuke 12
 
 
0 # SeongGyu Kim 2023-10-14 08:12
Could you please create a command that generates Dot Node by dragging a line like snap connection or draw connection?
 
 
0 # SeongGyu Kim 2023-10-30 05:29
Using "Y" to break a line often causes Nuke to crash. Are these errors fixable?
 

You have no rights to post comments

We have 3253 guests and 117 members online