I’m trying to use the $PR variable from a Point SOP, using an old Houdini trick to assign primitive numbers to points so I can then manipulate the primitives using point animation.
However when I try to add $PR in the point SOP (I tried to create a custom Atrib and also tried to replace Weight with $PR, in Houdini I would replace Alpha with $PR), but I get an error…
How do I assign the primitive number to my points? Do I need to do a some kind of CHOPS voodoo to get there?
I’m not sure how it would work in Houdini, but a point can belong to multiple primitive, which is why that variable isn’t available in the Point SOP. You can use it in the Vertex SOP though.
Maybe Houdini just uses the first primitive that the Point belongs to?
Once a facet has been introduced, with “unique points” enabled, the points are no longer shared, they belong to a single primitive, correct?
The idea is that if a point is associated with a given primitive, it takes on a certain attribute, and then all the points can be numbered identically to that primitive, which allows for some cool particle to primitive transfer fun…