Color Panel v1.5


 
This location is for Registered Users Only.
Perhaps you need to login or register.
Contributor: Andrea Geremia
Change / Copy and Paste the color of the Nodes with this Python Panel
Requirements:
13.1, 12.2, 12.1, 12.0, 11.3, 11.2, 11.1, 11.0, 10 or later
Linux, Mac, Windows
01 May 2021
523

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 

 

Please login in order to download these files.

Comments   

 
0 # Jeang Jenq Loh 2019-05-03 06:17
Love this. But I noticed it doesn't work while inside a group?
It'll change color of selected nodes in root.
 
 
0 # Andrea Geremia 2019-05-16 12:26
Thank you very much, Jeang!
Updated the tool: now you can change color of nodes inside the groups ;-)
 
 
0 # bin zhuang 2019-05-22 08:29
from Qt import QtWidgets

importError:cannot import name QtWidgets

nuke 10.5v2 win7
 
 
0 # Andrea Geremia 2019-05-22 15:05
You have to install Qt in Nuke.
The easiest way is to place the file Qt.py in this folder:

- 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

At this link you can find a guide about that
http://www.andreageremia.it/tutorial_panel_qtpy.html

and here the file Qt.py
http://www.andreageremia.it/download/tutorial/qtpy/Qt.py
 
 
+1 # satish rekapalli 2020-03-28 06:45
cool....
 
 
+1 # darren coombes 2021-04-06 23:03
any possibility of getting this versioned up for python 3 compatibility?
 
 
0 # Andrea Geremia 2021-04-23 08:48
It will come really soon!!
 

You have no rights to post comments

We have 3229 guests and 117 members online