Pythonic foreach with hou

   771   1   0
User Avatar
Member
126 posts
Joined: Aug. 2010
Offline
Is there a way to get a Geometry object per unique attribute value, in the same sense that you do with a “For-Each Named Primitive” loop?
User Avatar
Member
45 posts
Joined: Dec. 2016
Offline
hi,
You can look every prim and add in a list the named attrib of the prim if is not already in.
After that you use the length of this list in you for loop.
And if(attrib in attrib): that you want to do …
Jeremy Gurdal
VFX Artrist
  • Quick Links