# Min/max values of attribute in geometry nodes

Is there a way to find the minimum and maximum values of a particular geometry node attribute?

As an example, let's say I have a bunch of points which have had a number of manipulations performed on them, which have some randomness included. I would then like to modify the 'z' position of these points according to their distance from the origin, 'd'. In particular, I would like to apply the following maths:

z = a*((d - d_min)/(d_max - d_min))^2


where 'a' is some input value, 'd' is the distance from the origin, which I can easily calculate, and 'd_min' and 'd_max' are the minimum and maximum values of 'd', respectively, which I don't know how to obtain.

It seems like this really should be easy to do - I can look through the spreadsheet at all the values of 'd' after all...

• so you mean e.g. like the maximum z-position of ALL points? Commented Jun 29, 2021 at 5:36
• I think it's not that straightforward to get these values, like in the shader editor each individual geometry piece isn't really aware of its surroundings, apart from vertices and edges which belong the same face. There is a Bounding Box node that should cover the min and max enveloppe points of the mesh Commented Jun 29, 2021 at 7:11
• @Chris: yes that's right. Commented Jul 1, 2021 at 3:14
• @Gorgious: I agree a similar problem exists in the shader editor, but there seems to be a relevant difference in that you often need to render in order to get the properties you care about, but you often want them before you render. Here though, the geometry is generated before render item. In my specific example I was thinking of point instances, but I think it's equally valid to think of mesh vertices. Either way, all the info is available to Blender since one can simply read it in the spreadsheet editor - it would just require Blender to read those values and find the min/max. Commented Jul 1, 2021 at 3:15
• feel free to upvote this rightclickselect request : blender.community/c/rightclickselect/wKvz/?sorting=hot Commented Aug 6, 2022 at 21:04