Prototypes from Instances

   550   2   0
User Avatar
Member
77 posts
Joined: 11月 2019
Offline
Hello!

In SOPs, given 10k instances of 4 packed prototypes randomly assigned, is there a simple and efficient way/node of getting the 4 prototypes back as they would be before the copytopoints sop?

(Numbers just illustrate the example, not relevant)

Thanks!
Edited by Cicuta - 2024年7月4日 06:57:51
User Avatar
スタッフ
402 posts
Joined: 2月 2008
Offline
You can use the "geometryid" primitive intrinsic attribute to find all the unique prototypes.

Here's an example of how you could get the original instances back.

Attachments:
FindPrototypes.hip (161.8 KB)

User Avatar
Member
77 posts
Joined: 11月 2019
Offline
Thanks! That would work but in dense point clouds it gets a bit heavy. I imagine there is no other way that does not require evaluating all primitives right? What I have in mind is something like getting back from memory the prototypes, the same way I'm guessing the instancer is doing.
  • Quick Links