convert nurbs to polygon breaks integer attributes

   384   2   0
User Avatar
Member
45 posts
Joined: Feb. 2016
Offline
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

Attachments:
polytoNURBS.png (1.2 MB)
nurbs_to_poly.png (1.4 MB)
castconvert.png (1.3 MB)
idBreak.hiplc (73.6 KB)

User Avatar
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.
User Avatar
Member
45 posts
Joined: Feb. 2016
Offline
Ah ok cool, thank you for confirming!
Its on the points because I was doing a point trail and the id was on the original initial start point, but you make a good point (hehe), once the trail is created each prim will have its own unique ID or I can promote it. Thanks again!
  • Quick Links