> For the complete documentation index, see [llms.txt](https://myty.gitbook.io/products/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://myty.gitbook.io/products/kit/make-animation/9.-apply-motion-tracking/bone-motion-adapters/pupil-and-pupilall.md).

# Pupil & PupilAll

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

## Inspector window

<figure><img src="/files/J08DuHWOYp63REiTf49s" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/TadGXlLx6gwHYUDlIF3y" alt=""><figcaption></figcaption></figure>

## How to use Pupil Motion Adapter

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;">`Left/RightPupil`</mark> or <mark style="color:purple;">`PupilAll`</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;

1\. Add <mark style="color:purple;">`Bone Left/Right Pupil`</mark> or <mark style="color:purple;">`Bone Pupil All`</mark> Adaptor to the Hierarchy using <mark style="color:purple;">`MotionAdaptorPalette`</mark>. Refer to the document below for the details:

{% content-ref url="/pages/imim4DXFGLErs0aJotG3" %}
[MotionAdaptorPalette](/products/kit/appendix/motionadaptorpalette.md)
{% endcontent-ref %}

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 [/pages/5OYH2phJVY0T6vSYlesQ#1.-add-defaultmotiontemplate](https://myty.gitbook.io/products/kit/make-animation/9.-apply-motion-tracking/bone-motion-adapters/pages/5OYH2phJVY0T6vSYlesQ#1.-add-defaultmotiontemplate "mention") and [/pages/5OYH2phJVY0T6vSYlesQ#2.-add-mediapipemotionpack](https://myty.gitbook.io/products/kit/make-animation/9.-apply-motion-tracking/bone-motion-adapters/pages/5OYH2phJVY0T6vSYlesQ#2.-add-mediapipemotionpack "mention")
{% endhint %}

3\. To set which Controller to connect the Left/RightPupilX or Left/RightPupilY 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 [/pages/dBy25eQk1Az7cVc6HZBy#2.-create-controller](https://myty.gitbook.io/products/kit/make-animation/9.-apply-motion-tracking/bone-motion-adapters/pages/dBy25eQk1Az7cVc6HZBy#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](/products/kit/make-animation/9.-apply-motion-tracking/advanced-documentation/stabilizing-method.md).

<figure><img src="/files/c63XiFJ9OnmHiEs31UPN" 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.
