Is there some sort of script that would generate color ID map texture based on vertex groups or facemaps of your mesh in one go?
I could be wrong, but can’t you use cryptomatte for this?
AFAIK this is for materials in general but not for vertex groups or face maps… i can only think of using vertex colors for every group (if they don’t overlap) to make this…
Uhh… one of the things i never tried in TextTools is making/baking color ID’s… it seems to be you have to split the vertex groups in the model before using it (merge afterwards ??) and then just click (see botom)…
Hi, I am aware of this method. Thanks for trying to help.
Unfortunately, this won’t work if you have separate mesh elements you want as one color id. So I am wondering if there is some sort of script that looks at your face maps groups or vertex groups and generates seperate color ID in a texture for each group.
Maybe its an option that could be added to Textools?
Yes if you already have seperated meshes and vertex groups… then you have a little problem…
So you could:
- select every single vertex group and paint them in Vertex Paint mode with Paint Mask enabled
- write your own script (or maybe even addon)
- you may ask this here ( and donate something?):
- maybe one of these are more usable for you (because of their additional features?):
Thanks mate.
There is some sort of face set ability in sculpt mode that has just been added, Im pretty sure I saw Jimmy Gunawan (Blender Sushi) doing something through geonodes with it…
…They are limited at the moment but new nodes appear all the time…Blender 3.4
after a bit more digging, I found this, so not exposed as attributes yet, but is hidden in
.sculpt_face_set
so no named attribute access, yet…
Doable in python as mentioned by hans.
Thanks for suggestion so does that mean you can bake face set to texture if you need color id texture from it in the future?
Problem is most people would want a way to do this when modeling hence the vertex groups or face maps to color ID for texture or vertex color option.
Well, it looks like you could do it now with python but not geonodes yet.
There is a Python Api extra node in Geonodes available from @BD3D but Ive had no luck accessing face sets from it atm.
python API evaluator node is just to evaluate a python line, it’s not a script node
I was thinking more this way round?
but I cant get at vertex_groups either.
Object color is useful though…