4

Is it possible to convert mesh islands to instances, so that each instance will have each island?

enter image description here

Crantisz
  • 35,244
  • 2
  • 37
  • 89
  • Maybe even a better method to turn mesh islands into instances: https://blender.stackexchange.com/a/297733/8282 – Manu Järvinen Jul 26 '23 at 11:07
  • ^ To the pondering of above comment, no it wasn't. It yielded 10secs on my scenario. The result .blend of the answer below was only 6secs. – Manu Järvinen Dec 28 '23 at 19:59

3 Answers3

3

Here the shortest way. Each separate node in the column separates island with index=0 from the leftover of previous separation. And the last node separates two last islands.

simple separation islands to instances

3

In Blender 4.0 it is possible with loops:

RaccoonGraphics gave the nodes in here in Twitter.

enter image description here

enter image description here

Note from OP:

I think that writing index into all vertices is very expensive, so I made an update to this node tree:

enter image description here

.blend (The optimized version above, Blender 4.0):

Manu Järvinen
  • 7,392
  • 2
  • 25
  • 62
  • oh, that's interesting – Crantisz Jul 13 '23 at 12:15
  • @Crantisz Thank you for the improvement, I didn't know it is possible to do some kind of 'pull requests' into people's answers :D Maybe I should some day do the same, as well. When a good situation occurs. – Manu Järvinen Nov 02 '23 at 14:21
1

well...i am sure that's not the way you want, but that's one way - but a tedious one:

enter image description here

enter image description here

Chris
  • 59,454
  • 6
  • 30
  • 84
  • 1
    I see, quite clever way but limited to number of copies of the node group. – Crantisz Oct 03 '22 at 13:28
  • Yep - hopefully Robin or Quellenform come up with a better one – Chris Oct 03 '22 at 14:47
  • 1
    Unfortunately, the only answer to the question "Is it possible to convert mesh islands to instances?" is: No, not possible. Maybe there is another way to the goal, but for that you would have to know the goal. @Crantisz ? – quellenform Oct 03 '22 at 15:53