Search - User list
Full Version: VEX: what's the rule behide attribute interpolation?
Root » Houdini Indie and Apprentice » VEX: what's the rule behide attribute interpolation?
raincole
For example, let's say I create a square with Grid SOP.

I can access the P attribute with an Attribute Wrangler running over primitives:

printf("%g", vector(prim(0, "P", @primnum)));

However, the P attribute isn't on primitives. It's on points! Why is the above code working? And does it always work for every attribute other than P?
eikonoklastes
Primitives have a hidden, read-only P attribute too. The output you're seeing is the position of the prims, not the points. You can verify this by running it on a grid with a single prim.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB