Backdrop Node Presets

Categories Python, Workflow

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!

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, 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 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 “” link down the bottom to view the code on GitHub.

Click here to download the code, the presets I’ve set in my own, 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.

If you liked this post, and would like to gain a better understanding of the fundamentals of Python in Nuke, check out my course: Python for Nuke 101.

1 thought on “Backdrop Node Presets

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.