Color Panel

Change / Copy and Paste the color of the Nodes with this Python Panel

Updated: 1 May 2021

Author: [email protected]

Compatible Nuke versions: 10.0 or later

Compatibility: Linux, Mac, Windows

COLOR PANEL


V 1.5

  • Nuke 13 compatible (tested with Nuke 12-13 on Windows and Nuke 10-11 on Mac)
  • Minor improvements: now the custom window is visible automatically and not behind the Color Panel 

V 1.4

  • Updated feature for Groups

V 1.3

  • Improved messages and documentation

V 1.2

  • Added info and help button
  • Updated Qt version and improved documentation

V 1.1

  • Now you can change color of nodes inside a Group
  • Improved help button

With this Panel you can change easily the color of your Nodes in Nuke.

You can read the tutorial about this Panel and see how you can customze it at this link: http://www.andreageremia.it/tutorial_color_panel.html

All the code is available at the link above, with some tips about Python. 

bg.jpg


Features:

  1. Select a color from the Nuke default colors
  2. Select a color from the list
  3. Custom color
  4. Copy and Paste color
  5. Reset color of the node

This tool is done in 2 versions: Qt and PySide. Functions are the same, only the code is different! It's been tested in Nuke 11+ on Windows and Mac.

How to install Qt:

If you get this error: importError:cannot import name QtWidgets you have to install Qt.

Here you can find a complete guide about that: http://www.andreageremia.it/tutorial_panel_qtpy.html

Otherwise, place this file http://www.andreageremia.it/download/tutorial/qtpy/Qt.py here:

- Windows: C:\Program Files\Nuke10.0v1\lib\site-packages
- Linux: /usr/local/Nuke10.0v1/lib/python2.7/site-packages
- macOS: /Applications/Nuke10.0v2/Nuke10.0v2.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages


panel.jpg


Use this code in your menu.py to load the Panel in Nuke.

import ColorPanel

t = nuke.menu('Nodes')
c = t.addMenu('ColorPanel', icon='ColorPanel.png')
c.addCommand('ColorPanel', 'ColorPanel.colorPanel()', 'shift+c', icon='')

And use the Shortcut SHIFT+C to call the Panel in Nuke.


You can modify 'tile_color' of Nodes, just clicking on the relative button. On the top grid you have all the Default colors from Nuke and in the second one other colors you can modify just using QtDesigner.

nodes01.jpg

nodes02.jpg


With the 'Custom color' button you can choose the RGB.

customColor01.jpg


Then you can also modify color of BackDrops and StickyNotes.

backdrop02.jpg

stickyNote02.jpg 

 

Sign in or register to download or rate.