how to group every 3 prims as a new group?

   2260   5   1
User Avatar
Member
479 posts
Joined: Dec. 2009
Offline
suppose there are 9 prims in the geometry. May I ask how to group them very 3 prims? I.e. group1 (prim 0-2), group2 (prim 3-5) …

Thanks!
User Avatar
Member
479 posts
Joined: Dec. 2009
Offline
advices are greatly appreciated!
User Avatar
Member
464 posts
Joined: Aug. 2014
Offline
Something like this?

Attachments:
groupEvery3rdPrim.hipnc (57.8 KB)

User Avatar
Member
479 posts
Joined: Dec. 2009
Offline
Hi, ajz3d, thanks! May I ask how to display those fps and geometry information at the lower right corner of the scene view panel? can it be customized to display other information?

Anyway, will study your code later.

Thanks again!
User Avatar
Member
464 posts
Joined: Aug. 2014
Offline
You're welcome.

There are two options to display this information in Display Options->Guides->Additional Information.
User Avatar
Member
8531 posts
Joined: July 2007
Online
or just use
Partition SOP with rule:
group_`floor($PR/3)`
Tomas Slancik
FX Supervisor
Method Studios, NY
  • Quick Links