Accessing gltf nodes by name

Hi,

I have loaded a gltf scene with some mesh nodes inside.
Is it possible to access node by retrieving it by name ?
Thanks

Have you tried using Object3D.getObjectByName()? Like so:

const avatar = gltf.scene.getObjectByName( 'avatar' );
1 Like