Hi, is there any kind of query selector method? Aside scene.getMeshByID, .scene.getMeshByName, etc Considering the following structure:
Scene
House House2 House House2
└ Floor1 └ Floor1 └ Floor1 └ Floor1
└ Window └ Window └ Window └ Window
└ Window └ Window └ Window └ Window
Now If I need to change the color of all windows of House2 type. How should I do it?
Is there a way to select all Windows of House2 object?
In DOM querySelectorAll it would be “House2 Window”
In Babylon.js there is not such a thing, right?
Is having multiple meshes with the same name any problem? Can it be used multiple times? Maybe it should be different because it’s used in some internal functions? mesh.id I’m pretty sure should be unique. Otherwise i could add another prop, like “selector” instead of using the “name” prop.
I’m trying to load a scene from Blender → https://playground.babylonjs.com/#9CEG6B#2
Can you point me the way to set it up without relaying on an xhr request? So I can test
…but the syntax will be the same (inspired by jQuery DOM selectors). PM me if you are interested I’m sure there’s great stuff to be done with this kind of library with BabylonJS !
I will absolutely try out the lib and maybe even contribute, but I am experiencing hard drive failure at the moment. I will try when I get my PC running smoothly