# Imported Model Question

**URL:** <https://forum.babylonjs.com/t/imported-model-question/1048>\
**Category:** Questions\
**Created:** [January 29, 2019, 11:13pm UTC](https://forum.babylonjs.com/t/imported-model-question/1048 "2019-01-29T23:13:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![freetoplay](https://avatars.discourse-cdn.com/v4/letter/f/848f3c/32.png) [@freetoplay](https://forum.babylonjs.com/u/freetoplay)\
**Post date:** [January 29, 2019, 11:13pm UTC](https://forum.babylonjs.com/t/imported-model-question/1048/1 "2019-01-29T23:13:57Z")

</div>

When I import a custom made model into the scene, it’s very large. Is there a way to scale the model down so that it fits the scene?

---

<div class="post-metadata">

**Author:** ![brianzinn](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/brianzinn/32/28013_2.png) [@brianzinn](https://forum.babylonjs.com/u/brianzinn)\
**Post date:** [January 30, 2019, 2:04am UTC](https://forum.babylonjs.com/t/imported-model-question/1048/2 "2019-01-30T02:04:18Z")

</div>

I wrote some code to scale a model to a largest dimension, which sounds like what you are after:

First you need to get the bounding info for the model:

> <https://github.com/brianzinn/react-babylonjs/blob/master/src/model/Model.ts#L21>

Then you scale it accordingly:

> <https://github.com/brianzinn/react-babylonjs/blob/master/src/customComponents/ModelLifecycleListener.ts#L79>

If you make a PG with a model then we can get it scale it using that code.

edit: sorry about those bad links. I haven’t figured out how to post code like we could in the old forum.

---

<div class="post-metadata">

**Author:** ![SometimesIMakeThings](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sometimesimakethings/32/353_2.png) [@SometimesIMakeThings](https://forum.babylonjs.com/u/SometimesIMakeThings)\
**Post date:** [January 30, 2019, 6:31am UTC](https://forum.babylonjs.com/t/imported-model-question/1048/3 "2019-01-30T06:31:49Z")

</div>

And also worth mentioning if you just wanted the basic scaling code for every model you just imported in your .onSuccess there’s also:

> newMeshes[0].scaling = new BABYLON.Vector3(0.5, 0.5, 0.5);

But Brian’s automated process is pretty nice!
