sbn Align Read Nodes v1.1


 
This location is for Registered Users Only.
Perhaps you need to login or register.
Contributor: Sebastian Faber
script to align and sort nuke read nodes in the node graph editor. This is a tool I use EVERY DAY and helps a lot to sort and to compare footage, AOVs and 3D layers.
Requirements:
12.0, 11.3, 11.2, 11.1 or later
Linux, Mac, Windows
20 Feb 2020
71

sbnAlignReadNodes demo Slow 

-----------------------------------------------------------------------------------

  sbnAlignReadNodes_2020 v1.13

-----------------------------------------------------------------------------------

  UDATE!

  17.02.2020

  - this is a new Version! Some minor issues are fixed. Also the installation process should now work on Mac.

  - fixing Issue: 'L' shortcut do not overwrite 'L'- in the viewer playback (Thanks to Johan for this hint)

  SPECIAL THANKS:

   Thanks to Johan Van Huyssteen for his suggestions and bugreporting

-----------------------------------------------------

 

 

script to align and sort nuke read nodes in the node graph editor.

- read nodes are aligned horizontally, zig zag, vertically or as 'wave'
- read nodes are also sorted in ALPHABETICAL order from left to right
- toggle between horizontal and 'zig zag' alignment in order to read long AOV file names 


USAGE
-----------
- select read nodes

- press 'L' to align 'zig zag' and press 'L' again to align read nodes horizontally

- press shift+'L' to align read nodes vertically

 


COMMENT
-----------
- if the selection contains other nodes than read nodes nuke's built in autoplace function is used which is asigned to the 'L' key by nuke's default keyboard mapping. So don't worry to override the 'L' key with this tool.


FEEDBACK
-----------
- comments and suggestions are welcome. Please feel free to drop me a line in the comment field.


INSTALLATION - NEW! 
------------

(Windows PC):
- copy the script sbnAlignReadNodes_2019.py to your personal nuke script folder e.g. 'D:/Nukescripts/sbnAlignReadNodes_2019.py'
- open your menu.py and add the following lines:


global glToggleRS; glToggleRS=0

m=nuke.menu('Nodes').addMenu('sbn')
m.addCommand( '.Align Read Nodes ' , 'nuke.load('sbnAlignReadNodes_2020.py'), sbnAlignNodes('default')', 'L', shortcutContext=2)
m.addCommand( '.Align Read Nodes (vertical)' , 'nuke.load('sbnAlignReadNodes_2020.py'), sbnAlignNodes('vertical')', 'shift+L', shortcutContext=2)
m.addCommand( '.Align Read Nodes (horizontal)' , 'nuke.load('sbnAlignReadNodes_2020.py'), sbnAlignNodes('horizontal')', '', shortcutContext=2)
m.addCommand( '.Align Read Nodes (wave)' , 'nuke.load('sbnAlignReadNodes_2020.py'), sbnAlignNodes('wave')', '', shortcutContext=2)
m.addCommand( '.Align Read Nodes (zigzag)' , 'nuke.load('sbnAlignReadNodes_2020.py'), sbnAlignNodes('zigzag')', '', shortcutContext=2)

 - now please restart nuke

 

USAGE
------------

- after installation, select your read nodes and press 'L' or 'shift+L' to align the selected nodes.
- press 'L' or 'shift+L' again to toggle.
- after installation a new icon appears in your toolbar. Press the icon to see all the menu entries of 'Align Read Nodes'

 

ADDITONAL COMMENTS
-----------
- tested on Windows 10 with Nuke 11.x, should also work on MAC and linux.
- written in python

 

 

Please login in order to download these files.

Comments   

 
# Johan van Huyssteen 2019-11-08 13:04
Hi there. I'm having issues with 'Syntax error' messages preventing Nuke from launching up no matter where I point the m.addCommand. My 'snbAlignReadNo des_2019.py' is located one directory down from the menu.py so

'm.addCommand( '.Align Read Nodes ' , 'nuke.load('/py thon/sbnAlignRe adNodes_2019.py '), sbnAlignNodes(' default')', 'L')

should work but it doesn't. Please advise what I might do to get it working?
 
 
# Johan van Huyssteen 2019-11-08 14:05
Actually I found the issue. 'nuke.load' needs the plugin name only, not the relative or absolute path. Due to the pluginAddPath being setup properly in my menu.py / init.py I just needed to type:
nuke.load('sbnAlignReadNodes_2019.py') for everything to work correctly.

This is extremely useful. Thank you very much.
 
 
# lou cannizzo 2019-11-14 17:03
Yup, same issue. No matter what path I use, I get syntax error line 3. I also tried adding nuke.load into the ini.py as well.
Finally gave up.

Are there any detail instructions to load this?
 
 
# James Rowell 2019-11-15 20:28
Hey Lou - I was having trouble too, I think I found the fix. Look in the actual python script sbnAlignRe adNodes_2019.py for the commented out lines that are supposed to go into your menu.py. They have proper use of double and single quotes. That plus what Johan wrote above, should get it working for you. Cheers J.
 
 
# Sebastian Faber 2020-02-19 14:25
Hey guys,
yes you are right! Thanks for your comments. I've updated the tool and changed some minor issues. Now the menu.py entries should also work on Mac. Also the "L" hotkey is now still working in the Nuke Viewer and not overwritten anymore. Please download the new version: sbnAlignReadNodes_2020.py

Also please use the menu.py entries as described in the updated installation procedure.

Special thanks to Johan for his suggestions and reports. Please let me know if you have still any issues or suggestions.

best regards Sebastian
 
 
# Bart Barendregt 2020-02-20 10:24
On nuke 11 Linux I'm getting this error whichever way I'm trying to load the plugin:

Traceback (most recent call last):
File "/.nuke/menu.py ", line 55, in
global glToggleRS; glToggleRS
NameError: global name 'glToggleRS' is not defined

any ideas?
 
 
# Sebastian Faber 2020-02-20 14:52
please try this:
global glToggleRS; glToggleRS=0
 
 
# Bart Barendregt 2020-02-26 18:10
Thanks! that fixed it.
 

You have no rights to post comments

We have 3084 guests and 76 members online