Nuke Knowledge Base

Nuke stuff I need the interwebs to remember for me.

Convert rgb to hex colour in python

For some things, like the tile colour of a node, you can’t work with rgb but need to use hex values instead. You can use the following code to convert rgb to hex:

So, to set a random tile colour for the selected node, type:

Leave a Reply

Your email address will not be published. Required fields are marked *