Triyugi33 Posted December 30, 2018 Share Posted December 30, 2018 Hi there,I am new to houdini. I have point cloud and a geometry. I searched for the nearest primitive to the point in VOP and stored that in new attribute named "skinprim". Now,I have primitive number of nearest primitive in point attribute ( skinprim) of my point cloud. Now, I want same exact number of primitive in a group from "skinprim" attribute. For e.g. if I have 5,9,11,15,77 in my skinprim attribute ( which is a point attribute in point cloud). I want primitive number 5,9,11,15,77 in a group of other geometry by using skinprim attribute. Quote Link to comment Share on other sites More sharing options...
anim Posted January 2, 2019 Share Posted January 2, 2019 like this: int pt = findattribval(1, "point", "skinprim", @primnum); i@group_mygroup = pt != -1; ts_group_by_attrib_values.hip Quote Link to comment Share on other sites More sharing options...
Triyugi33 Posted January 2, 2019 Author Share Posted January 2, 2019 10 hours ago, anim said: like this: int pt = findattribval(1, "point", "skinprim", @primnum); i@group_mygroup = pt != -1; ts_group_by_attrib_values.hip yes, this is exactly what I was looking for Thank you so much Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.