# Exporting a Space's GLB Mesh as ADB Command

**URL:** <https://forum.magicleap.cloud/t/exporting-a-spaces-glb-mesh-as-adb-command/4090>\
**Category:** General\
**Tags:** development, spaces\
**Created:** [August 28, 2024, 4:13pm UTC](https://forum.magicleap.cloud/t/exporting-a-spaces-glb-mesh-as-adb-command/4090 "2024-08-28T16:13:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![steve.rooney](https://avatars.discourse-cdn.com/v4/letter/s/8797f3/32.png) [@steve.rooney](https://forum.magicleap.cloud/u/steve.rooney)\
**Post date:** [August 28, 2024, 4:13pm UTC](https://forum.magicleap.cloud/t/exporting-a-spaces-glb-mesh-as-adb-command/4090/1 "2024-08-28T16:13:58Z")

</div>

Hello! I am working on an app that requires meshes to be synced to multiple ML2s. I see that as of the 1.8.0 OS Release I can export a space's mesh as a GLB. I also know that I can run various commands via ADB from a host machine to manage spaces, which includes export/import capability as a zip file.

However, I have not been able to find any mention of exporting a space's GLB mesh through ADB. Is this functionality available somewhere that I am missing, or could it perhaps be a planned feature in the roadmap somewhere? Ultimately, I hope to be able to import the space's mesh into Unity so that I would not have to do meshing within the app itself.

Thanks!

---

<div class="post-metadata">

**Author:** ![etucker](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/etucker/32/842_2.png) [@etucker](https://forum.magicleap.cloud/u/etucker)\
**Post date:** [August 28, 2024, 9:45pm UTC](https://forum.magicleap.cloud/t/exporting-a-spaces-glb-mesh-as-adb-command/4090/2 "2024-08-28T21:45:21Z")

</div>

Hi @steeve.rooney,

I have reached out to our team to find out if this is possible through ADB. I will let you know as soon as I learn more.

---

<div class="post-metadata">

**Author:** ![aheaney](https://avatars.discourse-cdn.com/v4/letter/a/f08c70/32.png) [@aheaney](https://forum.magicleap.cloud/u/aheaney)\
**Post date:** [August 28, 2024, 10:14pm UTC](https://forum.magicleap.cloud/t/exporting-a-spaces-glb-mesh-as-adb-command/4090/4 "2024-08-28T22:14:33Z")

</div>

Hello,

The GLB files are created when you finish mapping a space. The export button in the Spaces app just copies the file for you. You can use the adb pull command to retrieve them from the Spaces app's data directory- /sdcard/Android/data/com.magicleap.mappingtool/files

example -

```auto
PS C:\spacetest> adb shell

demophon:/ $ mlmapping -spaces
2 space(s) found
map id :{452403ec-f574-7018-aab0-1ae55e811991}
map name :Local Space 2546
map file path :/data/misc/pwservice/maps/{452403ec-f574-7018-aab0-1ae55e811991}.map
created(timestamp) :1721651006
properties :[]

map id :{5fe4b24c-b8c4-7018-881c-3f2468e854ec}
map name :Local Space 6370
map file path :/data/misc/pwservice/maps/{5fe4b24c-b8c4-7018-881c-3f2468e854ec}.map
created(timestamp) :1724881597
properties :[]

demophon:/ $ cd /sdcard/Android/data/com.magicleap.mappingtool/files

demophon:/sdcard/Android/data/com.magicleap.mappingtool/files $ ls
il2cpp mozc.data {452403ec-f574-7018-aab0-1ae55e811991}.glb {5fe4b24c-b8c4-7018-881c-3f2468e854ec}.glb

demophon:/sdcard/Android/data/com.magicleap.mappingtool/files $ exit

PS C:\spacetest> adb pull "/sdcard/Android/data/com.magicleap.mappingtool/files/{5fe4b24c-b8c4-7018-881c-3f2468e854ec}.glb"
/sdcard/Android/data/com.magicleap.mappingtool/files/{5fe4b24c-b8c4...}.glb: 1 file pulled, 0 skipped. 34.9 MB/s (396588 bytes in 0.011s)

```

Best,  
Adam

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex019/uploads/magicleap1/original/1X/bd9b737a4d45ea243aa7eb177d60a773b806899a.svg) [@system](https://forum.magicleap.cloud/u/system)\
**Post date:** [September 12, 2024, 10:14pm UTC](https://forum.magicleap.cloud/t/exporting-a-spaces-glb-mesh-as-adb-command/4090/5 "2024-09-12T22:14:57Z")

</div>

Closed on September 12, 2024, 10:14pm UTC

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
