Hello,
I'm working on a code driven way to texture props and crowds characters according to set Color ID Maps with random variations of e.g. wood, fabric or metal materials. I want to choose randomly from a pool of e.g. different wooden materials to texture parts of the meshes.
Now for that I need a Multi-Material Switch node as I want to switch randomly between different e.g. wooden materials to texture one color on the Color ID Map.
I know that there is a Multi-Material Switch from the community (
https://share.allegorithmic.com/libraries/1154) but there's a very big problem with that one:
When I try to access the exposed parameter of the Multi-Material Switch (what selection it has) and randomize it, the maps just come out all transparent. It seems like the node doesn't pass the parameters to randomize and I don't know why. It works if I use the built in Material Switch, which unfortunately only lets you switch between two materials. The Multi-Color/ Grayscale Switch also works fine for images.
In Substance Designer everything works perfectly but as soon as I try to access the exposed parameters via code they are not accessible. I'll attatch a sample setup that I would need, maybe one of you has a good idea how to solve this.
EDIT: If I just replace one of the Multi-Material Switch nodes with a shipped Material Switch node this one set renders out perfectly, with randomization etc. The others still don't.
