I am having a mesh. Every face has a ID. There is also a python dictionary where the IDs are mapped to a RGB value (or something else, which can map ID -> RGB. I am just thinking theoretically).
Now I want to have a node setup which colors the surface of the mesh dependent of the RGB value (I am also using these node groups (https://jtheninja.wordpress.com/2015/02/08/simple-pbr-v2/) because I want to see it with pbr values. Later I also want to have values for roughess and metallic for each face).
I am unsure which of the following node-types I should use for that:
- Attribute Node (has output for color)
- value Node (has output for floats, so I would need three value nodes and make a color-vector out of it?)
- Script Node (Only for Open-Shading-Language scripts, am I right? Shouldn't help)
I need a node type which could access the ID Properties of the current object. I also need a node which also "knows" the face it is currently working and gets the face-id.
Any advice? Thanks!