I'm in the geometry node editor, using the Duplicate Elements node. For this example I duplicate a cube to create 100 cubes arranged in a line.
I would love to be able to use the index output of the node to choose a different material for each cube in the line. However, when I try to connect this output into anything determining a material, the connecting line is dotted red, and it fails to assign any material.
It seems like the Set Material node requires a constant input, not a variable input.
Is there a clean way to set a different material to a large number of duplicated or generated objects in the geometry node editor?