Ello, came across a strange issue, not sure why this is happening or if its a bug.
I make trails from 2 moving points, each trail has an integer "id" attribute, 0 and 1, I convert the trail to a NURBS Curve with the convert node, when I try to use a convert node to convert it back to Polygons, the id attribute for all points changes to -1.
If I cast the attribute to a float, it stays as 0.0 and 1.0. so only if its integer it all gets changed to -1.. whats the deal with that?
i tried recreating the issue with a new basic file, it sets all ids to 0 instead of -1 like in my slightly more complex scene
convert nurbs to polygon breaks integer attributes
385 2 0- NNNenov
- Member
- 45 posts
- Joined: Feb. 2016
- Offline
- RGaal
- Member
- 143 posts
- Joined: June 2024
- Offline
Yes, that's right. Apparently, this is one of thousands of small Houdini bugs. The workaround for this situation, when the id is the same for all points, is quite simple - you should store the attribute in the primitive, and promote it to the points if needed. Actually, the id is unique for the primitive, right? So you should store it in the primitive. Why store it in the points? It's illogical.
- NNNenov
- Member
- 45 posts
- Joined: Feb. 2016
- Offline
-
- Quick Links