List of local variable

   456   4   0
User Avatar
Member
48 posts
Joined: Feb. 2013
Offline
Where can I find the list of built-in local variables of a geometry ? such as $TX, $N , $CEX etc.
User Avatar
Member
2537 posts
Joined: June 2008
Offline
Here's some, but certain variables are only available on certain nodes in certain contexts. Check any node's help card for more details.

Scroll down a bit.
https://www.sidefx.com/docs/houdini/network/expressions.html [www.sidefx.com]
Using Houdini Indie 20.0
Windows 11 64GB Ryzen 16 core.
nVidia 3050RTX 8BG RAM.
User Avatar
Member
48 posts
Joined: Feb. 2013
Offline
Enivob
Here's some, but certain variables are only available on certain nodes in certain contexts. Check any node's help card for more details.

Scroll down a bit.
https://www.sidefx.com/docs/houdini/network/expressions.html [www.sidefx.com]


Thanks a lot.

Btw , i found something else like D_X / D_Y / D_Z . Since we can't use it with '$' prefix then they're not variables ,right? what species is this other than variables and attributes ?
User Avatar
Member
8555 posts
Joined: July 2007
Offline
metaclay2
Btw , i found something else like D_X / D_Y / D_Z . Since we can't use it with '$' prefix then they're not variables ,right? what species is this other than variables and attributes ?
they are Constants, which represent more human readable alternative to just typing integer numbers

like in centroid() hscript function [www.sidefx.com], you can use
D_X, D_Y, D_Z
instead of
0, 1, 2
which honestly is not that necessary and I always use 0, 1, 2

however for bbox() hscript function [www.sidefx.com], it may be much clearer to use:
D_XMIN, D_YMIN, D_ZMIN, D_XMAX, D_YMAX, D_ZMAX, D_XSIZE, D_YSIZE, D_ZSIZE
instead of
0, 1, 2, 3, 4, 5, 6, 7, 8
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
48 posts
Joined: Feb. 2013
Offline
tamte
metaclay2
Btw , i found something else like D_X / D_Y / D_Z . Since we can't use it with '$' prefix then they're not variables ,right? what species is this other than variables and attributes ?
they are Constants, which represent more human readable alternative to just typing integer numbers

like in centroid() hscript function [www.sidefx.com], you can use
D_X, D_Y, D_Z
instead of
0, 1, 2
which honestly is not that necessary and I always use 0, 1, 2

however for bbox() hscript function [www.sidefx.com], it may be much clearer to use:
D_XMIN, D_YMIN, D_ZMIN, D_XMAX, D_YMAX, D_ZMAX, D_XSIZE, D_YSIZE, D_ZSIZE
instead of
0, 1, 2, 3, 4, 5, 6, 7, 8

Thanks for the explanation. I really appreciate it.
  • Quick Links