# Using Metahumans

This page explains how to add a Metahuman to your Motion project and integrate them into the Motion character blueprint.

### Importing your Metahuman

To import your Metahuman, open the `Quixel Bridge` window inside the editor which you can find in the `Window` toolbar menu.

![](https://content.gitbook.com/content/TszXzMjZahP7Z9MzSyW6/blobs/ZXDSLtsp23qpCJDnNcrd/ue5-window-bridge.png)

Select your Metahuman then download & import it.

![](https://content.gitbook.com/content/TszXzMjZahP7Z9MzSyW6/blobs/CN2wNCYpJEJUX0GpjVAf/ue5-bridge-metahumans2.png)![](https://content.gitbook.com/content/TszXzMjZahP7Z9MzSyW6/blobs/D7oTE5RcFo1kSADYmF7W/ue5-bridge-metahumans1.png)

Make sure to modify your project settings when prompted by confirming dialog boxes that show up upon first importing a Metahuman into your project and then restart Unreal Engine.

<figure><img src="https://content.gitbook.com/content/TszXzMjZahP7Z9MzSyW6/blobs/6wOIwz1hDochVCbU0TBc/ue5-mh-enablemissing.png" alt=""><figcaption></figcaption></figure>

Once successfully imported, you'll find your Metahuman, alongside other common assets used by Metahumans in your project.

<figure><img src="https://content.gitbook.com/content/TszXzMjZahP7Z9MzSyW6/blobs/yH19VfWnKFAZktsBOOic/ue5-cb-metahuman.png" alt=""><figcaption></figcaption></figure>

### Adding the Metahuman to your Motion Character Blueprint

Alongside the blueprint of the Metahuman, open your Motion character blueprint.

Select the shown components from your Metahuman blueprint and hit CTRL + C or right-click "Copy" to copy the components.

![](https://content.gitbook.com/content/TszXzMjZahP7Z9MzSyW6/blobs/k62E2VQviTypNY4qR9Kr/ue5-mhbp-componentcopy.png)

Then, in the Motion character blueprint, paste them as children of `Mesh`.

Move the components to their respective parents if the copy-paste-process messed up their hierarchy.

<figure><img src="https://content.gitbook.com/content/TszXzMjZahP7Z9MzSyW6/blobs/Lvo0KTIqWVz3L7EfWFLD/ue5-mh-mbp-componentpaste.png" alt=""><figcaption></figcaption></figure>

Finally, copy the `LODSync` component from the Metahuman blueprint into your Motion character blueprint.

![](https://content.gitbook.com/content/TszXzMjZahP7Z9MzSyW6/blobs/lfOEiUWNzDwtXShg4fKR/ue5-mh-mbp-lodsync.png)

### Copy Metahuman Blueprint Logic

#### Functions

Metahumans require some setup upon start, so we need to copy that code from the Metahuman blueprint into the Motion character blueprint.

Copy the `Enable Master Pose` function from the Metahuman blueprint and paste them in the Motion blueprint.

#### Event Graph

Head to the `Event Graph` of the Motion character blueprint and create two new functions:

1. MetahumanInitialize
2. MetahumanBeginPlay

<figure><img src="https://600474317-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTszXzMjZahP7Z9MzSyW6%2Fuploads%2Ft1dYLH5w6b6zPQNXFvXd%2Fimage.png?alt=media&#x26;token=49ab746e-7e5b-41f0-bb01-39ec415240b2" alt=""><figcaption></figcaption></figure>

Then, head back to the Metahuman blueprint, open the `Event Graph`, and copy all nodes from the graph. Paste them into the Motion character Blueprint. Create functions where needed and copy & paste the nodes from the functions into your character blueprint.\
\
![](https://600474317-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTszXzMjZahP7Z9MzSyW6%2Fuploads%2FfM0ozP324PqRLmBjsuSg%2Fimage.png?alt=media\&token=c3c9967d-5da5-4b5f-907a-57caccb510e9)

Repeat the same process for the `Construction Script` of the Metahuman Blueprint. Although you can skip the nodes regarding live link here.

\
Once all contents of the Metahuman blueprint have been copied, create a call to `MetahumanInitialize` in your character's `Construction Script`, and a call to `MetahumanBeginPlay` at the `Begin Play` event node of your character blueprint.

<figure><img src="https://600474317-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTszXzMjZahP7Z9MzSyW6%2Fuploads%2FCigetAipfo7DrggoCl36%2Fimage.png?alt=media&#x26;token=668dba04-6265-475b-9b89-2edc84ba31b7" alt=""><figcaption></figcaption></figure>

<figure><img src="https://600474317-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTszXzMjZahP7Z9MzSyW6%2Fuploads%2FzhNtSG0WabNteom2eEev%2Fimage.png?alt=media&#x26;token=120f82b5-f8c6-4d0e-9d83-9e8b8f683e89" alt=""><figcaption></figcaption></figure>

### Create Retarget Animation Blueprint

In order for the Metahuman to work with the animations that ship with Motion, a new animation blueprint has to be created.

Head over to the body mesh of your metahuman (e.g. `m_tal_nrw_body`) by clicking on the `Body` component and then clicking the folder-icon to navigate to the mesh.

Right-click the mesh and select `Anim Blueprint`.

<figure><img src="https://content.gitbook.com/content/TszXzMjZahP7Z9MzSyW6/blobs/GQO8lmqpMBYCvhwHgOoq/ue5-mh-cb-createanimbp.png" alt=""><figcaption></figcaption></figure>

Right-click in the AnimGraph, then search for and create a Retarget Pose from Mesh node. Connect this node to the Output Pose node, as shown below.

![](https://content.gitbook.com/content/TszXzMjZahP7Z9MzSyW6/blobs/of5JniqY6j9UBd0Zokz5/ue5-mh-mabp-retargetnode.jpg)

Click the Retarget Pose from Mesh node to select it. Then, in the Details panel, in the Retargeter Asset dropdown, select the `RTG_Mannequin_Motion` Retarget Asset.

Finally, in the Motion character blueprint, select `Body` and give assign it the animation blueprint you just created.

<figure><img src="https://content.gitbook.com/content/TszXzMjZahP7Z9MzSyW6/blobs/mNqXJ5Pm2asj0Q8XOFc3/ue5-mh-mbp-animbp.png" alt=""><figcaption></figcaption></figure>

### Fitting Motion to your Metahuman

Depending on the size and volume of your Metahuman, the default configuration for Motion may lead to unintended and / or undesirable results.

I recommend the following steps:

1. Adjust the Capsule Half Height and Capsule Radius to match the shape of the Capsule Component to your Metahuman.
2. Especially with smaller MetaHumans (compared to the mannequin), you are likely to run into problems using the animations that ship with Motion, as the retargeting might result in undesired results. To fix this, adjust the relevant values of the rotation alpha (mostly for the legs).
3. Delete the `FullBody` skeletal component in your character blueprint, if you do not wish to use the provided head mesh of your metahuman for shadows only. The head mesh is quite large, so I would recommend removing it. Otherwise duplicate all your Metahuman meshes and apply the settings of the `FullBody` skeletal component to them, and then remove the `FullBody` component.
4. Set `Owner No See` to `true` for `Mesh (CharacterMesh0).` This is done since we still need the animation blueprint to run in order for the real-time retargeting to work.
5. Set `Visibility Based Anim Tick Option` to `Always Tick Pose and Refresh Bones` for `Mesh`.
6. Enable `Owner No See` and `Hidden Shadow` for the following components:

* Face
* Fuzz
* Eyelashes
* Beard
* Mustache
* Hair
* Eyebrows

### Finished!

If everything was set up correctly, launching a session should result in your Metahuman being used as the character with all animations and features applied!

For additional information, please check out the [official documentation](https://docs.metahuman.unrealengine.com/en-US/retargeting-animations-to-a-metahuman-at-runtime/) for retargeting by Epic Games.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.kia.dev/motion-1.5/tutorials/using-metahumans.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
