Humans are creatures of habit. To align with this mindset, I have created a python script that enables compositors to set Backdrop Node presets in their menu.py!
I appreciate having consistent defaults, as it helps our lizard brains instantly recognize what is what at a glance, without thinking about it. If I’m zoomed out all the way on a massive Nuke script, I know the green areas are Keys, purple areas are DMPs, etc. etc.
Scroll down to see the code, or Click here if you simply want to download the code, the presets I’ve set in my own menu.py, and all the coloured icons.
You may notice the defaultBackdrop() function has a few parameters, that help control things:
Name: The label of your BackdropNode to display in the node graph
bgColR: Red value of the BackdropNode’s colour
bgColG: Green value of the BackdropNode’s colour
bgColB: Blue value of the BackdropNode’s colour
tColR: Red value of the text colour
tColG: Green value of the text colour
tColB: Blue value of the text colour
zIndex: Controls layering in relation to other Backdrop Nodes
These parameters control the aspects we want to change when we create the presets in our menu.py. Speaking of, let’s dive into the code and see how it all works! I’ve commented the code, to make it more human-readable.
Highlight the code to scroll across & read it all, or click the “backdropDefaults.py” link down the bottom to view the code on GitHub.
Click here to download the code, the presets I’ve set in my own menu.py, and all the coloured icons.
Tip: When creating your own presets, you can easily find the RGB colour values you want to use by opening a colour picker and copy/pasting the RGB values from there.