How do you use the total number of primitive groups in a parameter? I have 7 primitive groups created by the Partition SOP and want to use that to drive the number of material created by a Material SOP.
I was thinking it would be a $NUMGRPS or numgroups(“..”) or something similar…
Thanks!
Number of Groups
3040 2 1-
- kevinthebright
- Member
- 220 posts
- Joined: 11月 2010
- オフライン
-
- tamte
- Member
- 9432 posts
- Joined: 7月 2007
- オフライン
you can use
primgrouplist() - to get space separeated list of prim groups
or
primgroupmask() - to get space separated list of prim groups by pattern
then argc() - will give you number of elements in that list
so
argc(primgroupmask(opinputpath(“.”,0), “grp*”) )
will give you number of groups matching grp* pattern from the first input, etc.
primgrouplist() - to get space separeated list of prim groups
or
primgroupmask() - to get space separated list of prim groups by pattern
then argc() - will give you number of elements in that list
so
argc(primgroupmask(opinputpath(“.”,0), “grp*”) )
will give you number of groups matching grp* pattern from the first input, etc.
Tomas Slancik
CG Supervisor
Framestore, NY
CG Supervisor
Framestore, NY
-
- kevinthebright
- Member
- 220 posts
- Joined: 11月 2010
- オフライン
-
- Quick Links

