asnowcappedromance
Nov. 10, 2009 08:31:30
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
Nov. 10, 2009 09:49:46
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
Nov. 10, 2009 13:23:03
very nice!
thanks a lot Jeff, your help is always appreciated!