# Access on Objects loaded with gltf.loader

**URL:** <https://discourse.threejs.org/t/access-on-objects-loaded-with-gltf-loader/20861>\
**Category:** Questions\
**Tags:** loaders\
**Created:** [November 19, 2020, 3:47pm UTC](https://discourse.threejs.org/t/access-on-objects-loaded-with-gltf-loader/20861 "2020-11-19T15:47:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adrian\_Staffler](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/adrian_staffler/32/14688_2.png) [@Adrian\_Staffler](https://discourse.threejs.org/u/Adrian_Staffler)\
**Post date:** [November 19, 2020, 3:47pm UTC](https://discourse.threejs.org/t/access-on-objects-loaded-with-gltf-loader/20861/1 "2020-11-19T15:47:42Z")

</div>

Hello,  
i’m loading some 3D-models form blender as glb into my three js scene. After this i want interact with these Objects, but if i want to access to them with “scene.children[12]” for example i always get that the object us “undefined”. Is it even possible too animate importet objects.  
Thank you in advance.

---

<div class="post-metadata">

**Author:** ![Mugen87](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mugen87/32/5645_2.png) [@Mugen87](https://discourse.threejs.org/u/Mugen87)\
**Post date:** [November 19, 2020, 6:32pm UTC](https://discourse.threejs.org/t/access-on-objects-loaded-with-gltf-loader/20861/2 "2020-11-19T18:32:44Z")

</div>

Instead of working through the object hierarchy manually, it’s best if you give objects a name before exporting and then use `gltf.scene.getObjectByName( 'name' );` to query them.

---

<div class="post-metadata">

**Author:** ![Adrian\_Staffler](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/adrian_staffler/32/14688_2.png) [@Adrian\_Staffler](https://discourse.threejs.org/u/Adrian_Staffler)\
**Post date:** [November 20, 2020, 8:41am UTC](https://discourse.threejs.org/t/access-on-objects-loaded-with-gltf-loader/20861/3 "2020-11-20T08:41:43Z")

</div>

i already tried this, its still undefinded

---

<div class="post-metadata">

**Author:** ![Mugen87](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mugen87/32/5645_2.png) [@Mugen87](https://discourse.threejs.org/u/Mugen87)\
**Post date:** [November 20, 2020, 9:38am UTC](https://discourse.threejs.org/t/access-on-objects-loaded-with-gltf-loader/20861/4 "2020-11-20T09:38:21Z")

</div>

Then please show what you are doing with a live example or GitHub repository.
