how to group every 3 prims as a new group?

   3277   5   1
User Avatar
Member
479 posts
Joined: 12月 2009
オフライン
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: 12月 2009
オフライン
advices are greatly appreciated!
User Avatar
Member
654 posts
Joined: 8月 2014
オフライン
Something like this?

Attachments:
groupEvery3rdPrim.hipnc (57.8 KB)

User Avatar
Member
479 posts
Joined: 12月 2009
オフライン
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
654 posts
Joined: 8月 2014
オフライン
You're welcome.

There are two options to display this information in Display Options->Guides->Additional Information.
User Avatar
Member
9372 posts
Joined: 7月 2007
オフライン
or just use
Partition SOP with rule:
group_`floor($PR/3)`
Tomas Slancik
CG Supervisor
Framestore, NY
  • Quick Links