Alexandre Posted December 4, 2019 Share Posted December 4, 2019 Hi all, I've looked for an answer on the forum but couldn't find exactly what I am looking for, I'm sure this is super basic question (I'm learning python right now). how can I reach point that are within different groups ? I want to do simple math operations for different groups of points, so the idea is that once I have access to points within a group I'll do something like MyAttrib = [p.attribValue("MyAttrib") for p in points] to do some statistics of MyAttrib Thanks Alex Quote Link to comment Share on other sites More sharing options...
Alexandre Posted December 4, 2019 Author Share Posted December 4, 2019 try to find answers on sidefx https://www.sidefx.com/docs/houdini/hom/hou/PointGroup.html but I fail to understand how to return the content of a specific group, group_0 or group_1... Quote Link to comment Share on other sites More sharing options...
Alexandre Posted December 4, 2019 Author Share Posted December 4, 2019 (edited) I found the solution here just change the points expression by : points = [str(point.attribValue("myAttrib")) for point in group.points()] Edited December 4, 2019 by Alexandre 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.