I have a list with 150 colors, all representing a type of object in a scene (for example: walls, ceiling, grass, cabinet, painting, water, chair, table etc).
I want to create a reusable node group to quickly change an objects color.
What I have done in the past (if i had less than 10 colors):
Node Group
Add every color as RGB node, group them and name every output according to the color
Pros: Colors are available to use in procedural materials, I can hide unneeded colors quickly
Cons: potentially long list and inconvinient to set up for large amount of colors
Seperate material for each color
Pros: quickly apply colors to objects, searchable
Cons: inconvinient to set up for a large amount of colors, not usable for procedural materials
Any idea for a more convenient way to achieve this is greatly appreciated. Easy to set up would be great as well as some kind of searchability.
Currently I am thinking about just making a seperate node group for every color/object.
IMPORT_earth
. Then I could have Python parse the csv file to map all names to colors, then go through all RGB nodes starting withIMPORT_
, and update them to the colormapping[name.split('_')[1]]
, allowing it to produce an error if the key is not found (a typo). $\endgroup$