mirrorNodes

mirror the selected nodes in the DAG

Updated: 23 March 2021

Author: frank

Compatible Nuke versions: 10.0 or later

Compatibility: Linux, Mac, Windows

2.1 - Nuke 13 compatible


2.0 - added optional argumebt to use last or first selected node as the axis for mirroring

     - mirror is animated to keep track of nodes
     - the required menu entries are included in teh module now so the local menu.py only needs this line: import mirrorNodes


1.1 - corrected resulting positions and made undo work


Mirrors the nodes in the node graph to quickly rearrange portions of the DAG.

example menu.py entry (included in v2.0):

1
2
3
menuBar = nuke.menu('Nuke')
menuBar.addCommand('Edit/Node/Mirror/horizontally', 'mirrorNodes.mirrorNodes( nuke.selectedNodes(), direction='x' )', 'alt+ctrl+x')
menuBar.addCommand('Edit/Node/Mirror/vertically', 'mirrorNodes.mirrorNodes( nuke.selectedNodes(), direction='y' )', 'alt+ctrl+y')

for v2.0+ simply put this in your menu.py:
    import mirrorNodes

 

before: 
mirrorNodes_01

I map things like this to hotkeys and hide them in that ridiculously deep sub menu:mirrorNodes_02

after:
mirrorNodes_03

 

Sign in or register to download or rate.