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?
Is it documented which attributes are calculated on the fly?
496 4 0-
- kodoragon
- Member
- 8 posts
- Joined: Sept. 2026
- Offline
-
- DanWood
- Member
- 68 posts
- Joined: Aug. 2014
- Offline
-
- Gaalvk
- Member
- 127 posts
- Joined: March 2025
- Offline
-
- animatrix_
- 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]
@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]
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com] https://lnk.bio/animatrix [lnk.bio]
-
- kodoragon
- Member
- 8 posts
- Joined: Sept. 2026
- Offline
Thank for your answer!
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?
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



