My doubt is pretty straight forward: I have geo nodes grid with a bunch of instances with randomnized height. I want to colorize each instance depending on their height. I know that I need to somehow associate the index of each instance with it's Z position and apply a color ramp on that or send it as attribute to shader editor, but I don't know how to do it, can somebody help me please?? Here is a concept of what I'm trying to achieve: To do this shape I got a bunch of curve circles, transformed to points and instanced cubes with random sizes upon them. Thx!
"How can I colorize each instance depending on their height?"
In principle you store your randomly generated value for the scaling in a Named Attribute (In Blender 3.2 directly via the node
Store Named Attribute and in lower versions via Group Outputs).
You can take this value in the shader with the node
Attribute and put it into a
Of course you can also create and store your colors directly in Geometry Nodes in the same way.