Hello
I'm new to Houdini, and I would like to know the dimensions (x,y,z) of a given geometry.
Thank you
Measure the dimensions of a shape
4938 12 0- Matan_Shilo
- Member
- 6 posts
- Joined: 7月 2018
- Offline
- animatrix_
- Member
- 4627 posts
- Joined: 2月 2012
- Offline
Hi,
You can create a Detail Wrangle and write something like this:
It will store the size of the geo as size detail attribute for the entire geo.
You can create a Detail Wrangle and write something like this:
v@size = getbbox_size ( 0 );
It will store the size of the geo as size detail attribute for the entire geo.
Senior FX TD @ Industrial Light & Magic
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com]
youtube.com/@pragmaticvfx | patreon.com/animatrix | pragmaticvfx.gumroad.com
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com]
youtube.com/@pragmaticvfx | patreon.com/animatrix | pragmaticvfx.gumroad.com
- Matan_Shilo
- Member
- 6 posts
- Joined: 7月 2018
- Offline
- Drasko Ivezic
- Member
- 109 posts
- Joined: 12月 2014
- Offline
Matan_Shilo
Thank you very much.
I don't see a Detail Wrangle node, or u mean to simply use attribwrangle? After I added "v@size = getbbox_size ( 0 );"
to the attribwrangle node, where exactly I can see the detail attribute for the entire geo?
Thank you
Just set the attribute wrangle node parameter "run over" to detail and it will create a detail attribute for you. They didn't make a detail wrangle, but it is easy enough to chose the class yourself.
- Soothsayer
- Member
- 874 posts
- Joined: 10月 2008
- Offline
- Pmiller001
- Member
- 30 posts
- Joined: 11月 2017
- Offline
Hey guys! I'm trying to do a similar thing. I'd just like to see how big a mesh is haha. I understand that if I middle mouse click a node, it tells me the size. However, I'm not sure what that size IS. For example, when you create a box, the box defaults to "1,1,1" But is that in centimeters? I learned that I can change the scale of the grid, which is cool, but I'd rather not "eye" things out. Is there a way to determine the absolute scale of an object? It's important for me, expecially if I'm doing things that arent always going to be boxes.
- Konstantin Magnus
- Member
- 680 posts
- Joined: 9月 2013
- Online
- jsmack
- Member
- 8000 posts
- Joined: 9月 2011
- Offline
- Pmiller001
- Member
- 30 posts
- Joined: 11月 2017
- Offline
- Pmiller001
- Member
- 30 posts
- Joined: 11月 2017
- Offline
- jsmack
- Member
- 8000 posts
- Joined: 9月 2011
- Offline
Pmiller001jsmackOh interesting. What is Fiat?Konstantin Magnus
If not changed, 1 unit is 1m.
Sort of. Houdini is largely unitless, but there are contexts where the units do matter. The units are largely determined by fiat.
Meaning by declaration. I.e. the object is 1 meter high because I've defined 1 unit = 1 meter. This can cause problems when importing a model created by someone else that has 1 unit representing a different scale, such as cm or inches. The model will look too large in my scene in that case. The publisher of the model will have to communicate what scale was used to create the model.
- jsmack
- Member
- 8000 posts
- Joined: 9月 2011
- Offline
Pmiller001
ah ok! how would I change that? would that be in
edit > Preferences > Hip File options ?
I thought that only changed the scale of the grid?
Changing the preference does mostly nothing. It may change some defaults for dynamics constants, but mainly it affects how the film back and focal length units are converted into scene units for depth of field purposes. It might affect how FBX is imported now that scale can be applied on import. (fbx units were ignored in prior versions)
- vinyvince
- Member
- 273 posts
- Joined: 9月 2012
- Offline
If you use Gaz and fluid it's strongly advised to keep the 1 unit 1 meter or when doing FX you do matrix transform to come there there...
Vincent Thomas (VFX and Art since 1998)
Senior Env and Lighting artist & Houdini generalist & Creative Concepts
http://fr.linkedin.com/in/vincentthomas [fr.linkedin.com]
Senior Env and Lighting artist & Houdini generalist & Creative Concepts
http://fr.linkedin.com/in/vincentthomas [fr.linkedin.com]
-
- Quick Links