How to load Duck's glTF model by specifying the Mesh name

Passing meshNames will filter the loader such that other nodes will not be loaded at all. I think you are saying you want to access the mesh after it has loaded. If that’s the case, you can probably call importMesh with "" for the meshNames and use the resulting meshes array to filter for the mesh. Another option, if you are loading only one glTF per scene, is to use scene.getMeshByName.

1 Like