> For the complete documentation index, see [llms.txt](https://docs.motorica.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.motorica.com/documentation/style-cloning/how-to-guides/export-motionbuilder-mocap-data.md).

# Export MotionBuilder Mocap Data

Walkthrough how to export mocap data from MotionBuilder to create a Style Clone.

## Prerequisites

To follow this guide, first you must have:

1. Brought your mocap data into MotionBuilder
2. Retargeted your animations to the Motorica hierarchy

## Preparation

Before exporting your animation files, it is highly recommended to **plot all animation properties** to the Motorica skeleton. This avoids issues caused by improper interpolation, or keyframes that lie outside the take's play range.

1. Select all bones in the Motorica skeleton by right-clicking on `Root` then `Select Branches` :

<div align="left"><figure><img src="https://3701240830-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fd4XRcFZ7K0KOxbfN13Yz%2Fuploads%2FNkuG5NaN2lUCIPcCqomE%2FStep1_SelectHierarchy.png?alt=media&amp;token=689a0c8a-fc78-4e12-89ca-3ed40145e155" alt="" width="288"><figcaption></figcaption></figure></div>

2. Open the plotting tool via  `Animation > Plot Selected (All Properties)` :

<div align="left"><figure><img src="https://3701240830-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fd4XRcFZ7K0KOxbfN13Yz%2Fuploads%2Fv0KYGjnInuVBghAnWAZp%2FStep2_OpenPlot.png?alt=media&amp;token=11effabf-5495-46cd-b225-def4e609d3bd" alt="" width="563"><figcaption></figcaption></figure></div>

3. Plot your animation with the following settings:

* `Plot On Frame` enabled
* `Plot All Takes` if you have multiple takes in the same file
* A frame rate **of 30, 60 or 120 FPS**
* `Constant Key Reducer` disabled

<div align="left"><figure><img src="https://3701240830-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fd4XRcFZ7K0KOxbfN13Yz%2Fuploads%2Ftin647MUT6dghPmzzcVO%2FStep3_PlotSettings.png?alt=media&amp;token=6d2f80d7-0af7-4ef0-bc9b-157ebadc3bcd" alt="" width="251"><figcaption></figcaption></figure></div>

## Exporting

Now that the animation data has been plotted, we are ready to export. For this, we recommend using **Motion File Export** to ensure you're only sending animation data to Motorica. We must also ensure that each exported file only has **one take** inside it.

1. Select all bones in the Motorica skeleton by right-clicking on `Root` then `Select Branches` :

<div align="left"><figure><img src="https://3701240830-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fd4XRcFZ7K0KOxbfN13Yz%2Fuploads%2FNkuG5NaN2lUCIPcCqomE%2FStep1_SelectHierarchy.png?alt=media&amp;token=689a0c8a-fc78-4e12-89ca-3ed40145e155" alt="" width="288"><figcaption></figcaption></figure></div>

2. Open the export dialog via `File > Motion File Export` :

<div align="left"><figure><img src="https://3701240830-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fd4XRcFZ7K0KOxbfN13Yz%2Fuploads%2FJDsS0bTFTcF46CYthKOE%2FExport_Step2_MFE.png?alt=media&amp;token=416dab7c-aaf6-42a4-adb1-36b5185091d4" alt="" width="375"><figcaption></figcaption></figure></div>

3. Choose your folder and name the files as you wish, but ensure it is an `.fbx` or `.bvh` filename:

<figure><img src="https://3701240830-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fd4XRcFZ7K0KOxbfN13Yz%2Fuploads%2FezWE9Xdt74NjnXnoIiX0%2FExport_Step3_NamingFile.png?alt=media&amp;token=efe648a1-4171-4c00-9d3e-48f0c0c1f4ca" alt=""><figcaption></figcaption></figure>

4. Finally, select all takes you wish to upload to Motorica, with `One Take Per File` enabled:

<figure><img src="https://3701240830-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fd4XRcFZ7K0KOxbfN13Yz%2Fuploads%2FrCPwkggavgea1D8BrQnH%2FExport_Step4_Export.png?alt=media&amp;token=38f17c86-98a5-4874-a1d3-9b996c864550" alt=""><figcaption></figcaption></figure>

And you're done! Following these steps will make the style cloning process simpler, preventing technical issues caused by the FBX file format, allowing you to focus on reviewing the quality of your uploaded data.
