# EyeBlink & EyeBlinkAll

{% hint style="info" %}
For instructions on how to create an EyeBlink or EyeBlinkAll 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%2FPMovjKXjPyvs1sUYonm0%2FMA-eyeblink-bone.png?alt=media&#x26;token=e0da4dba-f649-4a2a-83e4-a9a616d42161" alt=""><figcaption></figcaption></figure>

<figure><img src="https://667382355-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZT6KDsWarcdCAiEJZ3TV%2Fuploads%2FdZx3JPPITnWqx4hGmgTw%2FMA-eyeblinkall-bone.png?alt=media&#x26;token=22595726-e856-410f-aefe-d66aabd89162" alt=""><figcaption></figcaption></figure>

## How to use EyeBlink Motion Adapter

<details>

<summary>What is the difference between EyeBlink and EyeBlinkAll Motion Adapters?</summary>

If you use the EyeBlink motion adapter, you can use the size values (left/rightEye) of both eyes separately. Using EyeBlinkAll, you can combine the size values of both eyes and send them to one Controller.

</details>

1\. In the <mark style="color:purple;">`Project window`</mark>, go to <mark style="color:purple;">`Assets > MYTYKit > MotionAdapter > Eye > Bone`</mark>, click and drag the <mark style="color:purple;">`EyeBlink`</mark> or <mark style="color:purple;">`EyeBlinkAll`</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 leftEye or rightEye 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.
