Color Panel v1.3


 
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:
11.0, 10.5, 10.0, 9.0, 8.0 or later
Linux, Mac, Windows
22 Jul 2019
116

COLOR PANEL

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. It's been tested in Nuke 10 and 11.

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   

 
# 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.
 
 
# 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 ;-)
 
 
# bin zhuang 2019-05-22 08:29
from Qt import QtWidgets

importError:cannot import name QtWidgets

nuke 10.5v2 win7
 
 
# 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
 

You have no rights to post comments

We have 4058 guests and 116 members online