# 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/Os6WOW1vnxaPpQpuqJOE/blobs/8TZ5brQEsiNIExFqKIDD/ue5-window-bridge.png)

Select your Metahuman then download & import it.

![](https://content.gitbook.com/content/Os6WOW1vnxaPpQpuqJOE/blobs/OCyWOuayb3lCwJ9BoP3n/ue5-bridge-metahumans2.png)![](https://content.gitbook.com/content/Os6WOW1vnxaPpQpuqJOE/blobs/B6V8tp8ZSsOcxrjVcr8g/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/Os6WOW1vnxaPpQpuqJOE/blobs/hDrv4UiUiVD3QSR9jelD/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/Os6WOW1vnxaPpQpuqJOE/blobs/ia7LL1A1v9aLazoa7Z9Q/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/Os6WOW1vnxaPpQpuqJOE/blobs/CXtzRD3Vn2vGqYEadAb4/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/Os6WOW1vnxaPpQpuqJOE/blobs/7LidXB2g4l5w8ReQtuQU/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/Os6WOW1vnxaPpQpuqJOE/blobs/OogKUIA7giCrw79rZRWz/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

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://content.gitbook.com/content/Os6WOW1vnxaPpQpuqJOE/blobs/zeAyuHRoCehFkWP1WoE6/image.png)

Repeat the same process for the `Construction Script` of the Metahuman Blueprint.&#x20;

Skip the nodes regarding live link and retargeting.

\
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://content.gitbook.com/content/Os6WOW1vnxaPpQpuqJOE/blobs/8DHaWIBbKhA2V1z9ellL/image.png" alt=""><figcaption></figcaption></figure>

<figure><img src="https://content.gitbook.com/content/Os6WOW1vnxaPpQpuqJOE/blobs/W9k05kvmHUF4wmYCSX9H/image.png" alt=""><figcaption></figcaption></figure>

### Create Retarget Animation Blueprint

**Duplicate & adjust IKRetargeter**

Before we make the Animation blueprint, make a copy of the IKRetargeter asset `RTG_Mannequin_Motion (found at: Plugins\MotionCore\Content\EpicGames\Characters\Heroes\Mannequin\Rig\RTG_Mannequin_Motion)` in your project's Content folder and open it.

In the details tab, switch the `Target IKRig Asset` to the one of your Metahuman and try to play an animation to verify that the retargeting works correctly.

{% hint style="info" %}
Compiling the IKRetargeter asset may result in a few warnings. Re-saving and compiling again should remove those warnings.
{% endhint %}

<figure><img src="https://1607887566-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOs6WOW1vnxaPpQpuqJOE%2Fuploads%2FLmXsryeOq3WFCzrR6DLv%2Fimage.png?alt=media&#x26;token=19f9625a-216a-4316-be8c-0874bd589612" alt=""><figcaption></figcaption></figure>

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/Os6WOW1vnxaPpQpuqJOE/blobs/Qox0Sh99X4QOwBchj9H9/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/Os6WOW1vnxaPpQpuqJOE/blobs/vH34Y7Gf0FqsEh1mmyoi/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/Os6WOW1vnxaPpQpuqJOE/blobs/3Q7kdauQT2pbRg1A0YTo/ue5-mh-mbp-animbp.png" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
You will have to open the RTG\_Mannequin\_Motion asset atleast once as it will throw warnings otherwise!
{% endhint %}

### 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.&#x20;
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 (CharacterMesh0)`.
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.
