Search - User list
Full Version: number of primitive groups
Root » Technical Discussion » number of primitive groups
asnowcappedromance
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
old_school
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”
asnowcappedromance
very nice!
thanks a lot Jeff, your help is always appreciated!

This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB