7
$\begingroup$

Is there a way to get height info of any geometry in geometry node editor?

For example, here I am using a 'Object Info' node to get a geometry. I want to get the height of that object.

Object Info Node

$\endgroup$

2 Answers 2

13
$\begingroup$

Yes. Probably two most reasonable options are:

  • Difference of Bounding Box minimum and maximum, separating out Z component
  • Statistical range of Z component of position for all vertices

Below I use both techniques to control cube dimensions based on the targeted object's height:

$\endgroup$
4
$\begingroup$

I apologize for the necropost, but I modified Markus von Broady's bounding box solution because for some reason scale didn't apply to the dimensions when I tried this. My nodes for the bounding box method will get the X, Y, and Z scales of the geometry. The separate XYZ node at the end isn't required, it'll work as just the vector; I just put it there because it suited my needs for one of my projects.

$\endgroup$
1
  • 2
    $\begingroup$ Thank you for sharing this. There is another cleaner approach with Attribute Statistic Node. You can get the range of Z position of the points in the geometry. $\endgroup$
    – G_Basak
    Commented Aug 4, 2022 at 17:19

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .