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.