number of primitive groups

   3026   2   1
User Avatar
Member
512 posts
Joined: 7月 2009
Offline
hi there,

i created a scene where i let a partition SOP create different primitive groups by color.
Now i want get the total number of those groups by expression to use it in the copy SOP's “number of copies” field.

any ideas?

regards,

Manuel
http://vimeo.com/user2522760 [vimeo.com]
http://stormbornvfx.com/ [stormbornvfx.com]
Manuel Tausch
User Avatar
スタッフ
2540 posts
Joined: 7月 2005
Offline
argc(primgrouplist(“/obj/my_object/my_sop_with_groups”))
returns the number of primitive groups in a target SOP.

argc() returns the number of space delimited strings in a list

primgrouplist() returns all the primitive groups in a SOP
pointgrouplist() returns all the point groups in a SOP

In the Houdini textport, type:

exhelp -k group

will return all the functions that contain “group”

exhelp -k count

will return all the functions that contain “count”
There's at least one school like the old school!
User Avatar
Member
512 posts
Joined: 7月 2009
Offline
very nice!
thanks a lot Jeff, your help is always appreciated!

http://vimeo.com/user2522760 [vimeo.com]
http://stormbornvfx.com/ [stormbornvfx.com]
Manuel Tausch
  • Quick Links