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

Dragos Stefan ds_list at dsg.ro
Thu Apr 23 08:52:14 EDT 2009


I like the idea of having an expression function 
(ngrouppoints/ngrouprims) which tells the number of points / primitives 
in a group. Or maybe just extend npoints/nprims to support a group 
name(s) as an optional argument.

Dragos


François Duchesneau wrote:
> What do you mean by "a more elegant way"? If you branch off a Delete Sop 
> and you put an expression in it that is driven by the group name the 
> user specifies, from your main node tree you can read npoints() on that 
> Delete Sop node and it's fully procedural.
>
> Maybe I don't understand your problem :)
>
> François
>
> robert east wrote:
>   
>> Hi Prema ,
>>                    I have already used the npoints function and blasted away
>> unwanted points at the SOP level that works, but I really wanted a more
>> elegant way. As it would be nice to read in the point count from predefined
>> groups as required by the user.
>>
>> Kind regards rob
>>
>>
>> On Thu, Apr 23, 2009 at 11:07 AM, Premamurti Paetsch <
>> premamurti.paetsch at gmail.com> wrote:
>>
>>   
>>     
>>> Hi Rob,
>>>
>>> What about blasting away all but the group in question, and then simply use
>>> $NPT to return the point count?
>>>
>>> Cheers,
>>> Prema
>>>
>>>
>>> 2009/4/23 robert east <east.robert at gmail.com>
>>>
>>>     
>>>       
>>>> Hi List ,
>>>>
>>>> Is there a function I can use to read the point count from a group at the
>>>> sop level into a pop network as I want to use that to emit particles in
>>>>       
>>>>         
>>> my
>>>     
>>>       
>>>> birth tab
>>>>
>>>>
>>>> Kind regards Rob
>>>> _______________________________________________
>>>> Sidefx-houdini-list mailing list
>>>> Sidefx-houdini-list at sidefx.com
>>>> https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list
>>>>
>>>>       
>>>>         
>>> _______________________________________________
>>> Sidefx-houdini-list mailing list
>>> Sidefx-houdini-list at sidefx.com
>>> https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list
>>>
>>>     
>>>       
>>
>>   
>>     
> _______________________________________________
> 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