# Scene Data Dump

**URL:** <https://forums.unrealengine.com/t/scene-data-dump/243832>\
**Category:** Editor Scripting\
**Tags:** unreal-engine\
**Created:** [August 4, 2021, 11:47am UTC](https://forums.unrealengine.com/t/scene-data-dump/243832 "2021-08-04T11:47:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![junfanbl](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@junfanbl](https://forums.unrealengine.com/u/junfanbl)\
**Post date:** [August 4, 2021, 11:47am UTC](https://forums.unrealengine.com/t/scene-data-dump/243832/1 "2021-08-04T11:47:00Z")

</div>

Hello everyone, I wasn’t sure what the appropriate thread was for this question. I’m wondering if UE enables you too query the scene elements? I’d like to query attributes for each object in the scene, specifically:

- Vertices
- Normals (I’m assuming this is how textures are mapped to the object?)
- Location in scene
- Material configurations

It is for analytical purposes. Can this be done via Python?

Thanks.

---

<div class="post-metadata">

**Author:** ![UE\_FlavienP](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ue_flavienp/32/1194546_2.png) [@UE\_FlavienP](https://forums.unrealengine.com/u/UE_FlavienP)\
**Post date:** [August 4, 2021, 1:38pm UTC](https://forums.unrealengine.com/t/scene-data-dump/243832/2 "2021-08-04T13:38:27Z")

</div>

Basically you will be able to get many (but not all) parameters that are exposed in editor UI:  
You will be able to get information from the world outliner such as parenting and transform of actors.  
You can also read material slots information both from static meshes or static mesh components.

However, under the hood information such as vertices, normals, etc. are not exposed to the python API (afaik)

---

<div class="post-metadata">

**Author:** ![junfanbl](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@junfanbl](https://forums.unrealengine.com/u/junfanbl)\
**Post date:** [August 5, 2021, 9:59am UTC](https://forums.unrealengine.com/t/scene-data-dump/243832/3 "2021-08-05T09:59:14Z")

</div>

Hmm okay. Well good to know I can read material slots. I guess I’ll take a closer look at the API and see what it offers. I wonder if you can export a scene in an FBX file via Python? That way I could read the vertices.

Anyway, thank you UE\_FlavienP.

---

<div class="post-metadata">

**Author:** ![UE\_FlavienP](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ue_flavienp/32/1194546_2.png) [@UE\_FlavienP](https://forums.unrealengine.com/u/UE_FlavienP)\
**Post date:** [August 6, 2021, 1:28pm UTC](https://forums.unrealengine.com/t/scene-data-dump/243832/4 "2021-08-06T13:28:03Z")

</div>

Actually a colleague show me that you can get some info on vertices / tris counts using the following sample:

```auto
import unreal

smas = unreal.EditorFilterLibrary.by_class(unreal.EditorLevelLibrary.get_all_level_actors(),unreal.StaticMeshActor)

for sma in smas:
    verts, tris, normals, uvs, tangents = unreal.ProceduralMeshLibrary.get_section_from_static_mesh(sma.static_mesh_component.static_mesh, 0, 0)
    print(sma.static_mesh_component.static_mesh)
    print("Face Count: " + str(len(tris) / 3))
    print("Vert Count: " + str(len(verts) / 3))

```

If you want to export to FBX you can find some sample there

> <https://github.com/ue4plugins/PythonSamples/blob/main/scripts/ImportExport/Export_selected_actors_to_FBX.py>
