Author Topic: Color Mask  (Read 1971 times)

I want to bake a color map by creating a random color for each submesh group,
and use this colors to create one Color mask per Color,
 So I need to create this colors and store them on a list to loop them over later,
I attach some Pseudo Code So you can get what I want to do.
How Can I do this via python?

Please some help!, I just want to know how to set the submesh colors and hit the bake map!, the rest I can figure out later.


Baking is not exposed in Designer's Python API.
As an alternative, I think you might be able to do what you want using the Substance Automation Toolkit.


Yes, this kind of workflow is doable with SAT, similar workflow examples exist inside the SAT package.


ok thanks!  :)

I think this should be a common workflow..
to set a random color for each submesh, and then use this same color to create a color mask per color should be a one button thing ,Withouth any use or installing of any external tool by part of a artist oriented user.

For udim workflow I don't know a better way than working with color mask and blend nodes.
 I'm working on doing this for myself,  is very painfull to set up by hand each time, also the submesh coloring interface is very small, is very slow to be scrolling across each group and check  if All the colors are different, and after that to be creating each color mask and sampling the colors, and then connecting blend nodes.. very very painfull and totally scriptable.

Can this be added as a feature request or at least submit the hability of the python sdk to write Color tables randomly by picking equidistante points on hues scale or something similar. ?

I'm working on recursion trees to generate this structures and generate the tool by requesting the color table by the part of the user, I'll be posting on the show case when it's done... but the better ways is just to write the color tables directly on the baking map proprierties, and to include all the baking setups on the python sdk would be even better, so I can match the same data on any further use along the material construction.
Last Edit: June 15, 2021, 12:37:19 am