# How to change the object size without changing the scale attribute

**URL:** <https://discourse.threejs.org/t/how-to-change-the-object-size-without-changing-the-scale-attribute/39744>\
**Category:** Questions\
**Tags:** transform\
**Created:** [June 28, 2022, 8:45am UTC](https://discourse.threejs.org/t/how-to-change-the-object-size-without-changing-the-scale-attribute/39744 "2022-06-28T08:45:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lizehua-cn](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/lizehua-cn/32/22529_2.png) [@lizehua-cn](https://discourse.threejs.org/u/lizehua-cn)\
**Post date:** [June 28, 2022, 8:45am UTC](https://discourse.threejs.org/t/how-to-change-the-object-size-without-changing-the-scale-attribute/39744/1 "2022-06-28T08:45:32Z")

</div>

does threejs have the concept of blender dimensions  
i got a glb file made by blender, this scale and parent scale value are equal proportional  
but it doesn’t look equal  
i found another unit **dimensions** is not equal …

 ![WechatIMG137](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/3X/5/d/5d8746a41a36bfe0c9d5f33fac3fc6c99e491a2d.png)  
 ![1381656406360_.pic_hd](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/3X/9/5/95b43d6aa0439f76c5b237b0121f6981c72890a2.jpeg)

I need to set the frame to the scale of the new picture  
if i use scale, the picture will be distorted  
so how to set other attribute to set size  
thanks  
[glb file](https://discourse.threejs.org/uploads/short-url/uh3ICXkTjwFGI8Yjg40dwLnhpUo.glb) (149.2 KB)  
[blender file](https://discourse.threejs.org/uploads/short-url/tfJRO5T2uVnv7iL7rJjqxEEv6IK.blend) (1002.3 KB)

---

<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:** [June 28, 2022, 10:47am UTC](https://discourse.threejs.org/t/how-to-change-the-object-size-without-changing-the-scale-attribute/39744/2 "2022-06-28T10:47:13Z")

</div>

> [@lizehua-cn](#):
>
> does threejs have the concept of blender dimensions

No, sorry. You can only use `Object3D.scale` to size objects up and down. Changing scale affects the object itself and its descendants.

The only solution I can think of right now is to update the geometry data itself. Meaning you change the transformation in Blender but then “bake” it into the geometry.

---

<div class="post-metadata">

**Author:** ![lizehua-cn](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/lizehua-cn/32/22529_2.png) [@lizehua-cn](https://discourse.threejs.org/u/lizehua-cn)\
**Post date:** [June 29, 2022, 3:25am UTC](https://discourse.threejs.org/t/how-to-change-the-object-size-without-changing-the-scale-attribute/39744/3 "2022-06-29T03:25:22Z")

</div>

i wrote a demo  
when I get the frame, make a backup of it  
then when i change image, i got image ratio, frame ratio, frame dimensions ratio,  
i calculate new image width height with backup frame dimensions ratio

```javascript
    function getFormatVal(defaultVal, rate = 1, frameRate = 1) {
      const height1 = defaultVal
      const width1 = height1 * rate / frameRate
      return { width1, height1 }
    }

```

[calculate frame codepen link](https://codepen.io/adminlte/pen/GRxRZaV)
