Node Color Cycler

Node Color Cycler

This script adds hotkeys to quickly cycle the tile colors of selected nodes in Nuke.

Features:

- F10: Cycles between Red → Green → Blue → Default → repeat

- F11: Cycles between Pink → Yellow → Orange → Default → repeat

- F12: Cycles between Black → White → Default → repeat

Behavior:

- Each press advances the color by one step in the cycle.

- If the node color is not part of the cycle, it starts at the first color.

- The "Default" step resets the node’s tile color to Nuke’s standard grey.

Implementation:

- Colors are defined as normalized RGB values [0–1].

- A helper function `set_tile_color()` converts RGB to Nuke’s ABGR int format.

- The NodeColorCycler class manages the color cycles and hotkey bindings.

Usage:

- Place this file inside your ~/.nuke folder (or studio pipeline scripts folder).

- Nuke will automatically register the hotkeys (F10, F11, F12) on startup.

First submitted: 19 August 2025

Author: Minnaz Rehman

Website: https://www.linkedin.com/in/minnazrehman/

Compatible Nuke versions: 7.0 or later

Compatibility: Source

Installation:

1. Paste the 'NodeColorCycler.py' in C:\Users\%username%\.nuke (Windows)


2. In menu.py add the following lines:

from NodeColorCycler import NodeColorCycler

# Create global cycler instance

node_color_cycler = NodeColorCycler()

#Create Nuke Sub Menu for Node Color Cycler

NodeColorCycler = nuke.menu('Nuke').addMenu('Node Color Cycler')

NodeColorCycler.addCommand("Cycle RGB", "node_color_cycler.cycle_rgb()", "F10")

NodeColorCycler.addCommand("Cycle PYO", "node_color_cycler.cycle_pyo()", "F11")

NodeColorCycler.addCommand("Cycle BW", "node_color_cycler.cycle_bw()", "F12")


3. Press F10, F11, F12 and check in your Nuke.

You can assign your own cutom hotkeys as you wish.

or register to download or rate.

Comments

or register to join the conversation.

Download Verification