# Multiple models position

**URL:** <https://discourse.threejs.org/t/multiple-models-position/14822>\
**Category:** Questions\
**Tags:** transform, gltf-loader\
**Created:** [May 1, 2020, 11:36am UTC](https://discourse.threejs.org/t/multiple-models-position/14822 "2020-05-01T11:36:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hamza](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/hamza/32/10653_2.png) [@Hamza](https://discourse.threejs.org/u/Hamza)\
**Post date:** [May 1, 2020, 11:36am UTC](https://discourse.threejs.org/t/multiple-models-position/14822/1 "2020-05-01T11:36:51Z")

</div>

Hi guys if i am adding a scene using GLTFLoader which have like 30,40 models like a wedding hall setting, is there any way i can select a model (like any sofa and chair etc) and change its position and color.

---

<div class="post-metadata">

**Author:** ![felixmariotto](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/felixmariotto/32/5928_2.png) [@felixmariotto](https://discourse.threejs.org/u/felixmariotto)\
**Post date:** [May 1, 2020, 12:51pm UTC](https://discourse.threejs.org/t/multiple-models-position/14822/2 "2020-05-01T12:51:54Z")

</div>

Hi,

THREE.GLTFLoader returns a object with a [THREE.Scene](https://threejs.org/docs/#api/en/scenes/Scene) that contains every object of your gltf.  
As THREE.Scene inherit from THREE.Object3D, you can use `Object3D.getObjectByName( name )` to find the child you’re interested in, provided that you named it before export (in Blender for instance).

Example :

```
gltfLoader.load('./path', (gltf)=> {

   myObject = gltf.scene.getObjectByName( 'nameOfMyObject' );

});
```

---

<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:** [May 1, 2020, 1:13pm UTC](https://discourse.threejs.org/t/multiple-models-position/14822/3 "2020-05-01T13:13:23Z")

</div>

> [@felixmariotto](#):
>
> THREE.GLTFLoader returns a object with a [THREE.Scene](https://threejs.org/docs/#api/en/scenes/Scene)

Small update: Since `R114`, the loader returns an instance of `THREE.Group`.

> **[Migration Guide](https://github.com/mrdoob/three.js/wiki/Migration-Guide#r113--r114)**
>
> JavaScript 3D Library. Contribute to mrdoob/three.js development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![Hamza](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/hamza/32/10653_2.png) [@Hamza](https://discourse.threejs.org/u/Hamza)\
**Post date:** [May 1, 2020, 1:16pm UTC](https://discourse.threejs.org/t/multiple-models-position/14822/4 "2020-05-01T13:16:07Z")

</div>

Hey thanks man. Is there any way like user can select any model on runtime and change the location of the model? 🙄

---

<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:** [May 1, 2020, 1:23pm UTC](https://discourse.threejs.org/t/multiple-models-position/14822/5 "2020-05-01T13:23:45Z")

</div>

> [@Hamza](#):
>
> Is there any way like user can select any model on runtime and change the location of the model?

Unfortunately, your question is very broad. It’s unlikely that somebody will provide you a complete solution for your use case. I suggest you get familiar with raycasting first since this is the basic technique for interacting with 3D objects. The following example might be helpful in this context:

[https://threejs.org/examples/webgl\_interactive\_cubes](https://threejs.org/examples/webgl_interactive_cubes)
