# How to export recordings with BODY\_38 as fbx file

**URL:** <https://community.stereolabs.com/t/how-to-export-recordings-with-body-38-as-fbx-file/7821>\
**Category:** C++\
**Created:** [January 3, 2025, 5:04pm UTC](https://community.stereolabs.com/t/how-to-export-recordings-with-body-38-as-fbx-file/7821 "2025-01-03T17:04:49Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![dbisig](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/d/ee7513/32.png) [@dbisig](https://community.stereolabs.com/u/dbisig)\
**Post date:** [January 3, 2025, 5:04pm UTC](https://community.stereolabs.com/t/how-to-export-recordings-with-body-38-as-fbx-file/7821/1 "2025-01-03T17:04:49Z")

</div>

Hi all,

I’ve been experimenting with the official example C++ source code for exporting a tracked body as fbx file. While this example works well for bodies in the body 34 format, it doesn’t currently support the body 38 format. At least at first glance, only a few modifications seem necessary to have this example support the body 38 format. One of these modifications involves changing the utils.hpp file so that the joint parent indices, children indices, and local translations match those of the body 38. The only thing that currently prevents me from progressing with this is my lack of knowledge concerning the correct coordinates for the local joint translations. Are these coordinates published somewhere? Or has anybody among you already implemented fbx support for the body 38 format?

Any advice or pointers to information is greatly appreciated.

Thanks in advance and best regards

Daniel

---

<div class="post-metadata">

**Author:** ![BenjaminV](https://community.stereolabs.com/user_avatar/community.stereolabs.com/benjaminv/32/3863_2.png) [@BenjaminV](https://community.stereolabs.com/u/BenjaminV)\
**Post date:** [January 6, 2025, 2:07pm UTC](https://community.stereolabs.com/t/how-to-export-recordings-with-body-38-as-fbx-file/7821/2 "2025-01-06T14:07:33Z")

</div>

Hi,

I think the simplest solution is that I update the sample myself.  
I’ll try to take some time to do it this week.

Best regards,

---

<div class="post-metadata">

**Author:** ![dbisig](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/d/ee7513/32.png) [@dbisig](https://community.stereolabs.com/u/dbisig)\
**Post date:** [January 6, 2025, 3:33pm UTC](https://community.stereolabs.com/t/how-to-export-recordings-with-body-38-as-fbx-file/7821/3 "2025-01-06T15:33:04Z")

</div>

Hi Benjamin,

thanks a lot for planning to update the sample! I very much look forward to this update.

Best regards

Daniel

---

<div class="post-metadata">

**Author:** ![BenjaminV](https://community.stereolabs.com/user_avatar/community.stereolabs.com/benjaminv/32/3863_2.png) [@BenjaminV](https://community.stereolabs.com/u/BenjaminV)\
**Post date:** [January 6, 2025, 3:43pm UTC](https://community.stereolabs.com/t/how-to-export-recordings-with-body-38-as-fbx-file/7821/4 "2025-01-06T15:43:58Z")

</div>

Sure! I’m happy someone is using it.

---

<div class="post-metadata">

**Author:** ![BenjaminV](https://community.stereolabs.com/user_avatar/community.stereolabs.com/benjaminv/32/3863_2.png) [@BenjaminV](https://community.stereolabs.com/u/BenjaminV)\
**Post date:** [January 7, 2025, 9:41am UTC](https://community.stereolabs.com/t/how-to-export-recordings-with-body-38-as-fbx-file/7821/5 "2025-01-07T09:41:32Z")

</div>

Hi again,

I updated the sample to fix the api issues and I also added the body 38 support.  
The new version will only be officially available with the next ZED SDK version but you can access it [here](https://github.com/Bvallon-sl/zed_body_tracking_fbx_export/tree/main) in the mean time.

Best regards,  
Benjamin V.

---

<div class="post-metadata">

**Author:** ![dbisig](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/d/ee7513/32.png) [@dbisig](https://community.stereolabs.com/u/dbisig)\
**Post date:** [January 7, 2025, 9:48am UTC](https://community.stereolabs.com/t/how-to-export-recordings-with-body-38-as-fbx-file/7821/6 "2025-01-07T09:48:01Z")

</div>

Hi Benjamin,

this is fantastic! Thanks a lot for updating the sample so quickly.

Best regards

Daniel

---

<div class="post-metadata">

**Author:** ![dbisig](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/d/ee7513/32.png) [@dbisig](https://community.stereolabs.com/u/dbisig)\
**Post date:** [January 7, 2025, 10:59am UTC](https://community.stereolabs.com/t/how-to-export-recordings-with-body-38-as-fbx-file/7821/7 "2025-01-07T10:59:49Z")

</div>

Hi Benjamin,

I’ve experimented with the updated version of the sample and have come across some issues. For some reason, when exporting the recording with a body\_38 skeleton, the nodes don’t possess names but only numbers. Also, when opening the resulting fbx in MotionBuilder, only the nodes but not the connections between them are displayed. These two issues don’t occur when exporting the recording with the body\_34 skeleton. Do you have an idea what might be causing these issues?

Thanks and best regards

Daniel

p.s.1. I’m using the AnimationUtility, GeometryUtility, and Common source files from version 4.2 of the ZED SDK.

p.s.2. I’ve modified the CreateSkeleton function by replacing sl::BODY\_34\_PARTS::LAST with sl::BODY\_38\_PARTS::LAST and sl::BODY\_34\_PARTS(I) with sl::BODY\_38\_PARTS(I).

---

<div class="post-metadata">

**Author:** ![BenjaminV](https://community.stereolabs.com/user_avatar/community.stereolabs.com/benjaminv/32/3863_2.png) [@BenjaminV](https://community.stereolabs.com/u/BenjaminV)\
**Post date:** [January 7, 2025, 11:02am UTC](https://community.stereolabs.com/t/how-to-export-recordings-with-body-38-as-fbx-file/7821/8 "2025-01-07T11:02:46Z")

</div>

I’ll take a look this afternoon.

---

<div class="post-metadata">

**Author:** ![dbisig](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/d/ee7513/32.png) [@dbisig](https://community.stereolabs.com/u/dbisig)\
**Post date:** [January 7, 2025, 11:14am UTC](https://community.stereolabs.com/t/how-to-export-recordings-with-body-38-as-fbx-file/7821/9 "2025-01-07T11:14:25Z")

</div>

Hi Bejamin,

great! Thanks.

Best regards

Daniel

---

<div class="post-metadata">

**Author:** ![BenjaminV](https://community.stereolabs.com/user_avatar/community.stereolabs.com/benjaminv/32/3863_2.png) [@BenjaminV](https://community.stereolabs.com/u/BenjaminV)\
**Post date:** [January 7, 2025, 12:54pm UTC](https://community.stereolabs.com/t/how-to-export-recordings-with-body-38-as-fbx-file/7821/10 "2025-01-07T12:54:12Z")

</div>

I made an update fixing the bone naming and your “ps2” as well.  
However I don’t see `only the nodes but not the connections between them are displayed` when I open it in Blender.

---

<div class="post-metadata">

**Author:** ![dbisig](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/d/ee7513/32.png) [@dbisig](https://community.stereolabs.com/u/dbisig)\
**Post date:** [January 7, 2025, 2:07pm UTC](https://community.stereolabs.com/t/how-to-export-recordings-with-body-38-as-fbx-file/7821/11 "2025-01-07T14:07:26Z")

</div>

Hi Benjamin,

thanks a lot for fixing the bone names and my hand-cooked modifications to the skeleton creation. I’m glad to hear that things look fine in Blender after importing the FBX. It must be just Motion Builder acting up.

Best regards

Daniel

---

<div class="post-metadata">

**Author:** ![dbisig](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/d/ee7513/32.png) [@dbisig](https://community.stereolabs.com/u/dbisig)\
**Post date:** [January 8, 2025, 1:06pm UTC](https://community.stereolabs.com/t/how-to-export-recordings-with-body-38-as-fbx-file/7821/12 "2025-01-08T13:06:31Z")

</div>

Hi Benjamin,

just to conclude the topic: I can happily confirm that the FBX export of the body 38 format works now very well and that things also look fine when importing the resulting file into MotionBuilder.

Thanks again for updating the C++ sample code.

Best regards

Daniel
