I have a mesh in which each face have a material assigned. There is a list of collections that the geometry node takes as input. I want to transform faces to points, and instantiate randomly elements of a collection. The collection is chosen depending on the material (index) the face has.
The problem I have is the switch node.
I suppose the reason is that "Material index" is a field, and the switch node does not accept it. No idea why, whether it is a bug or a feature for the future.
The question is, how to select this or that collection depending on the material index?
Using "Collection Info" node to "convert" the collection into a Geometry makes no difference.
Thanks in advance!