I have a bunch eg 5,000 extruded objects (think columns) each of different height. All off these exist as a single object, ie they are grouped together rather than individual layer objects. I want to apply a colour ramp so that each of the individual columns are coloured based on their height value, rather than the entire group.
This doesn't mean that the colour ramp is applied against the z axis resulting in the object having a colour fade as is gets taller, but more like the entire coumn is coloured based on its maximum height, and therefore corresponding colour on the colour ramp.
The columns are "hex bins" of a 2km geographic area. Their individual height represents the urban density. See image attached.
Hope that makes sense. If you are able to post the script / specific setup for this then I would be grateful - I'm very, very new to Blender so please bear with me!