Ramped Instance Colors? Geometry Nodes

I’ve created some Spheres along a Curve in Geometry Nodes and am trying to color them via a Ramp. I can do this if I “Realize Instances” but they need to stay unrealized because of a different part of the Material. Is there a way maybe to color them by Index or something? …


I managed to find a way to use as a whole object with the (Material) Geometry Node. But am still interested in any other ways. :slight_smile:

i store an attribute in the GN nodes … based on index or location or random or, well, whatever… mebbe from the curve (length) factor in your case. in the material, i’ll use that attribute to adjust color (or again, whatever).

color-instances.blend (1.2 MB)

example file ^

1 Like

Thanks, that’s really helpful. :slight_smile:

1 Like