Random Imported Submesh

Hello everyone,

As a test, I exported a Blender file that has 3 separate cubes (red, green, and blue). The goal is to have only 1 of these meshes load from the set (only the red cube, or only the blue cube, etc.). Which one loads should be random.

@Deltakosh created this effect here: https://www.babylonjs-playground.com/#QY1WYT#224

However, when using my imported meshes from Blender, I cannot replicate this effect. All three cubes load no matter what changes I make. Am I making a mistake with the hierarchy in Blender, or is this some type of coding mistake?

Test PG:
https://www.babylonjs-playground.com/#ZQLA5C#2

Update: I figured it out! :smiley: :+1:

In case it helps someone else, here’s the updated PG:
https://www.babylonjs-playground.com/#ZQLA5C#3

Good job!