Is it documented which attributes are calculated on the fly?

   496   4   0
User Avatar
Member
8 posts
Joined: Sept. 2026
Offline
For example, when I use a Primitive Wrangler, the @P has value, which seems to be the average position of all the primitive's points.

My question is where this behavior is documented? And what else attributes are calculated on the fly like primitive's @P, and how?
User Avatar
Member
68 posts
Joined: Aug. 2014
Offline
Not sure if/where it's documented, but I know it also works for normals, which means you can do silly stuff like:
@N = @N
if you want to explicitly set the variable to implicit normals.
Dan Wood
User Avatar
Member
127 posts
Joined: March 2025
Offline
In Primitive or Point wrangles, you can type `@attribute_name` (referencing a detail attribute), and it will be copied to that level—essentially a "promote" operation.
User Avatar
Member
5321 posts
Joined: Feb. 2012
Offline
Hi,

@P and @N are special cases:

@P: In a Primitive Wrangle, Houdini computes the primitive's centroid (average of its point positions), even though P is normally a point attribute.

@N: Houdini can compute normals on the fly when no N attribute exists. In a Primitive Wrangle, it returns the geometric normal; in a Point Wrangle, it can generate point normals from the surrounding geometry.

Unlike other attributes, these have special handling built into Houdini. The behavior is documented in pieces rather than in one comprehensive list:

https://www.sidefx.com/docs/houdini/expressions/prim.html [www.sidefx.com]

https://www.sidefx.com/docs/houdini/vex/snippets.html [www.sidefx.com]
Senior FX TD @ Industrial Light & Magic
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com] https://lnk.bio/animatrix [lnk.bio]
User Avatar
Member
8 posts
Joined: Sept. 2026
Offline
Thank for your answer!

animatrix_
In a Primitive Wrangle, it returns the geometric normal

But what does that mean? A primitive doesn't necessarily have a geometric normal, right? For example a primitive can be a quad who consists of two triangles that are not coplanar. In this case it shouldn't have a geometric normal, but @N still has values?
Edited by kodoragon - Nov. 18, 2026 12:39:52
  • Quick Links