Populate 3d surface with different objects in Grasshopper

Hi! I’m trying to place various 3D pieces on this conical surface. So far, I’ve managed to use the solution @Joseph_Oster shared at Populate 3d surface with small extruded shapes in Grasshopper, but I’ve run into a problem and was hoping you could help me. I haven’t been able to bake each type of piece separately (in different layers of Rhino, for example). I was using this to decorate a Christmas tree with ornaments (it was super useful), but what happens if we have four identical ornaments of different colors? After baking, they all look the same.

An image of code falls far short of posting the actual GH code (with internalized geometry).

Aqui adjunto el código

pop_geoArbol_Navidad.gh (87.2 KB)


pop_geoArbol_Navidad.gh (52.6 KB)

You can also assign each layer a color by wiring colors into the a display attribute and wiring this into the mode object.

Almost there I think, the new components works perfect!! but when remove flattening in the repeat data component the four different ornaments are being placed in the same point :frowning: