@numpt in Attritube Wrangle with group parm

   1566   2   0
User Avatar
Member
447 posts
Joined: Aug. 2019
Offline
Attribute Wrangle has a group parameter to limit which points we run the vex code on. But how could I get the number of points in the group? @numpt returns the number of points of the whole geometry.

I know expandpointgroup(), but it doesn't seem to be a very good idea to run it on every single point.
User Avatar
Member
37 posts
Joined: Feb. 2017
Offline
npointsgroup(surface_node, group_name)
https://twitter.com/majstorovich [twitter.com]
https://www.youtube.com/myMotionExperience [www.youtube.com]
User Avatar
Member
447 posts
Joined: Aug. 2019
Offline
majstorovich
npointsgroup(surface_node, group_name)

But it's for a specific group. My question is about the group parm, which can be a group syntax expression. I asked this because while I don't know how Wrangle is implemented, but logically Houdini needs to collect all the points in the group parm before it runs the vex; therefore I assume there is a way to access the number of points in the Vex.
  • Quick Links