# Hierarchy of Imported Meshes

**URL:** <https://forum.babylonjs.com/t/hierarchy-of-imported-meshes/1185>\
**Category:** Questions\
**Created:** [February 5, 2019, 3:23am UTC](https://forum.babylonjs.com/t/hierarchy-of-imported-meshes/1185 "2019-02-05T03:23:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![SpaceToast](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/spacetoast/32/648_2.png) [@SpaceToast](https://forum.babylonjs.com/u/SpaceToast)\
**Post date:** [February 5, 2019, 3:23am UTC](https://forum.babylonjs.com/t/hierarchy-of-imported-meshes/1185/1 "2019-02-05T03:23:20Z")

</div>

Hi everyone,

I’m running into some weird errors loading & unloading from .babylon files (as exported from Blender), and on inspection I’ve noticed the following:

No imported meshes appear to have a **parent** property _[snip]_.

This is strange. Hierarchical transforms (parent of a parent of a parent…) seem to be importing just fine. _[snip]_.

**Is there a way to determine a parent of an imported mesh?**

Cheers,  
Matt

---

<div class="post-metadata">

**Author:** ![Deltakosh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/deltakosh/32/26635_2.png) [@Deltakosh](https://forum.babylonjs.com/u/Deltakosh)\
**Post date:** [February 5, 2019, 4:25pm UTC](https://forum.babylonjs.com/t/hierarchy-of-imported-meshes/1185/2 "2019-02-05T16:25:08Z")

</div>

Just call scene.debugLayer.show() to get the allmighty Inspector 🙂  
[https://doc.babylonjs.com/features/playground\_debuglayer](https://doc.babylonjs.com/features/playground_debuglayer)

---

<div class="post-metadata">

**Author:** ![SpaceToast](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/spacetoast/32/648_2.png) [@SpaceToast](https://forum.babylonjs.com/u/SpaceToast)\
**Post date:** [February 7, 2019, 8:46pm UTC](https://forum.babylonjs.com/t/hierarchy-of-imported-meshes/1185/3 "2019-02-07T20:46:20Z")

</div>

Looking more closely, each imported mesh (with a parent in Blender) has a “.\_parentNode” property. This corresponds to the parent before export, but (and I’ve only run a preliminary test) it doesn’t appear to be a true parent relationship in BJS, in which position, rotation and scaling changes to the parent mesh are inherited by the child meshes. Is this correct? **Does the .babylon file exporter “flatten” parent hierarchies** , setting the exported meshes to their absolute position, rotation and scaling?

(Edited the above, as I’d made a silly mistake with instances. Also, looks like we can’t do strikethough on the new forum. Oh well…)

---

<div class="post-metadata">

**Author:** ![Deltakosh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/deltakosh/32/26635_2.png) [@Deltakosh](https://forum.babylonjs.com/u/Deltakosh)\
**Post date:** [February 8, 2019, 12:24am UTC](https://forum.babylonjs.com/t/hierarchy-of-imported-meshes/1185/4 "2019-02-08T00:24:53Z")

</div>

Nope the exporter exports the hierarchy as expected. How does it look like in the Inspector?
