# Getting width/height properties off Ellipse object

**URL:** <https://forums.creativeclouddeveloper.com/t/getting-width-height-properties-off-ellipse-object/1078>\
**Category:** UXP Plugin API\
**Created:** [July 23, 2019, 3:08am UTC](https://forums.creativeclouddeveloper.com/t/getting-width-height-properties-off-ellipse-object/1078 "2019-07-23T03:08:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ispykenny](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/ispykenny/32/486_2.png) [@ispykenny](https://forums.creativeclouddeveloper.com/u/ispykenny)\
**Post date:** [July 23, 2019, 3:08am UTC](https://forums.creativeclouddeveloper.com/t/getting-width-height-properties-off-ellipse-object/1078/1 "2019-07-23T03:08:17Z")

</div>

I cannot get the height and width properties off objects other than Rectangles. Am I missing something here?

```
const runImages = async (selection) => {
  for(let i = 0; i < selection.items.length; i++) {
    let {constructor, width, height} = selection.items[i];
    console.log(constructor.name, `width: ${width} | height: ${height} `)
  }
}

```

If the selected object is Rectangle then  
output //  
Rectangle width: 916 | height: 571

**However, if the object is Ellipse then the  
output //**  
**Ellipse width: undefined | height: undefined**

TIA!

---

<div class="post-metadata">

**Author:** ![cpryland](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/cpryland/32/1172_2.png) [@cpryland](https://forums.creativeclouddeveloper.com/u/cpryland)\
**Post date:** [July 23, 2019, 3:33am UTC](https://forums.creativeclouddeveloper.com/t/getting-width-height-properties-off-ellipse-object/1078/2 "2019-07-23T03:33:50Z")

</div>

Only `Rectangles` have `width` and `height` properties.

For all `SceneNode` superclasses (including `Rectangles`), you can use `.localBounds.width` and `.localBounds.height` instead.

---

<div class="post-metadata">

**Author:** ![ispykenny](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/ispykenny/32/486_2.png) [@ispykenny](https://forums.creativeclouddeveloper.com/u/ispykenny)\
**Post date:** [July 23, 2019, 2:52pm UTC](https://forums.creativeclouddeveloper.com/t/getting-width-height-properties-off-ellipse-object/1078/3 "2019-07-23T14:52:29Z")

</div>

YES! Thank you so much.
