Why does $SIZE not work for everything?

   2906   4   0
User Avatar
Member
25 posts
Joined: 11月 2016
Offline
I have made a node network that generates a terrain from a map. I displaced the points in a point VOP and need the height of this. For basic geometry I can use $SIZEY for this but in this case it is not recognized by Houdini or just returns 0. I figured the $SIZEY does not work for everything, but don't understand where I can or can't use it.
Anyone who can help me out?

Cheers!
Edited by aarondornez - 2017年4月29日 09:40:56

Attachments:
Capture01.PNG (77.2 KB)

User Avatar
Member
471 posts
Joined: 11月 2013
Offline
Hello.
For getting better information about whether this is work or not please check geometry spreadsheet.
Houdini can't really show per point created attribute in just a little box this is why spreadsheet is alive.
Regards.
User Avatar
Member
8619 posts
Joined: 7月 2007
Offline
if you open docs for each node, you should see which local variables it supports, if any

but generally you can use expressions like bbox() or centroid() to replicate that functionality in nodes that don't support them
Edited by tamte - 2017年4月30日 19:10:00
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
7836 posts
Joined: 9月 2011
Offline
Try the getbbox functions in the new point sop:

http://www.sidefx.com/docs/houdini/vex/functions/getbbox_size [sidefx.com]

Attachments:
pointsop.jpg (43.5 KB)

User Avatar
Member
25 posts
Joined: 11月 2016
Offline
Exactly what I need!
Thank you for the response, this will help me a lot!

Cheers!
  • Quick Links