[Sidefx-houdini-list] Point count from a group

Edward Lam edward at sidefx.com
Thu Apr 23 23:46:39 EDT 2009

What was wrong with Andrew Lyon's argc(pointlist("/obj/mysop", "mygroup"))


On Thu, April 23, 2009 19:38, robert east wrote:
> Hi Lucio ,
>                  Thats exactly the reason I am looking for a better
> workflow
> Rob
> On Fri, Apr 24, 2009 at 4:42 AM, Lucio Flores <dogboy_l at yahoo.com> wrote:
>> I think he means a way to do it without trashing memory. If you had to
>> do
>> this over millions of points and hundreds of point groups, it would take
>> forever. The solution doesn't scale well. I personally try to avoid the
>> whole copy/stamp/delete group thing as much as possible for this same
>> reason. I mean, you're creating and deleting all the geometry n times,
>> where
>> n is the number of groups. That is not elegant.
>> Maybe try using the 'add' sop to connect the points by group, then
>> create a
>> point attribute called 'count' initialized to one. Do attribute promote
>> 'count' to primitive using sum. That'll count all the points in a group
>> and
>> assign the value to the primitive.
> "Houdini is a pipeline in a box. Maya is a box that you have to build a
> pipeline for"
> _______________________________________________
> Sidefx-houdini-list mailing list
> Sidefx-houdini-list at sidefx.com
> https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list

More information about the Sidefx-houdini-list mailing list