# MouthSprite

{% hint style="info" %}
For instructions on how to create a MouthSprite Motion Adapter, please refer to 👉 [#4.-add-motion-adapters](https://myty.gitbook.io/myty-kit/make-animation/9.-apply-motion-tracking/..#4.-add-motion-adapters "mention")
{% endhint %}

## Inspector window

<figure><img src="https://667382355-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZT6KDsWarcdCAiEJZ3TV%2Fuploads%2F4UTQGVLHjg7TEuvcZqPZ%2FMA-mouth-sprite.png?alt=media&#x26;token=63b59280-5bcb-4cfb-a600-a46bb50053bb" alt=""><figcaption></figcaption></figure>

## How to use MouthSprite Motion Adapter

1\. In the <mark style="color:purple;">`Project window`</mark>, go to <mark style="color:purple;">`Assets > MYTYKit > MotionAdapter > Mouth`</mark>, click and drag the <mark style="color:purple;">`MouthSprite`</mark> prefab into the <mark style="color:purple;">`MotionAdapterGroup`</mark> object in the <mark style="color:purple;">`Hierarchy window`</mark>. You can change the name of the Motion Adapter object If you want to.&#x20;

2\. Click on the ◉icon next to a Template input box and select the <mark style="color:purple;">`SimpleFaceParam`</mark> template to be applied.&#x20;

{% hint style="info" %}
If nothing appears when you click the ◉ icon, it may be due to the following:\
The DefaultMotionTemplate or the MediapipeMotionPack prefab is not in the Hierarchy window\
→ Check [#1.-add-defaultmotiontemplate](https://myty.gitbook.io/myty-kit/make-animation/9.-apply-motion-tracking/..#1.-add-defaultmotiontemplate "mention") and [#2.-add-mediapipemotionpack](https://myty.gitbook.io/myty-kit/make-animation/9.-apply-motion-tracking/..#2.-add-mediapipemotionpack "mention")
{% endhint %}

3\. To set which Controller to connect the mouthX and mouthY motion data, click the ◉ icon next to TargetController. ◉ icon will bring up a Controller list from which you can select an option.

{% hint style="info" %}
If nothing appears when you click the ◉ icon, it may be due to the following:

The appropriate Script(s) are not applied to the Controller \
→ Check [#2.-create-controller](https://myty.gitbook.io/myty-kit/8.-myty-kit-controllers#2.-create-controller "mention")
{% endhint %}

4\. When all the elements are set, press the <mark style="color:purple;">`▶️(Play)`</mark> button to check the avatar preview.

### Advanced Options

You can control the stabilizing method in the Advanced Options. To get more advanced information about this, refer to 👉 [stabilizing-method](https://myty.gitbook.io/myty-kit/make-animation/9.-apply-motion-tracking/advanced-documentation/stabilizing-method "mention").

<figure><img src="https://667382355-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZT6KDsWarcdCAiEJZ3TV%2Fuploads%2FOHU6HJCSGsP7aKJpzKoH%2FScreen%20Shot%202022-10-23%20at%202.00.46%20AM.png?alt=media&#x26;token=8c17c38c-f96b-4cac-9510-3c97a0be9c9b" alt=""><figcaption></figcaption></figure>

* <mark style="color:purple;">`Is Damping`</mark>: The latest input becomes more dominant than the older input.
* <mark style="color:purple;">`Is Stabilizing`</mark>: It enables to detection of the moment of arrival of new data, and it makes the stabilization process much more rigorous.
* <mark style="color:purple;">`Is Use Damped Input To Stabilizer`</mark>: Whether to use damped input as input for stabilizer
* <mark style="color:purple;">`Damping Factor`</mark>: If Damping Factor=1, then the algorithm is just average. If Damping Factor becomes larger, it means that the latest input becomes more dominant than the older input.&#x20;
* <mark style="color:purple;">`Damping Window`</mark>: The amount of input data frames to configure the damping algorithm.
* <mark style="color:purple;">`Stabilize Method`</mark>:  Which method to apply to stabilize algorithm.


---

# 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://myty.gitbook.io/myty-kit/make-animation/9.-apply-motion-tracking/sprite-motion-adapters/mouthsprite.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.
