Short script to remove the problems when arranging nodes with 'L' and they are not placed in numerical order. I used to find this a pain when reading in lots of render passes and when lined up they where not in the order they were imported.
arrangeNodes
Updated: 17 August 2015
Author: daverobinsongfx
Compatible Nuke versions: 8.0 or later
Compatibility:
To use:
place the arrangeNodes.py file into your .nuke/python directory
add this to the menu.py file# ArrangeNodes
nodeMenu = nuke.menu('Nuke').findItem('Edit/Node')
nodeMenu.addCommand('Arrange Nodes', 'arrangeNodes.arrangeNodes()', 'alt+l')
select nodes and press 'alt L' to arrange in numerical order.
Next version will have checking for the user not selecting any nodes and later
node class sensitivity.