# Builder Pane

## Overview

The Builder pane can be accessed under the *View tab* or by clicking the <img src="https://content.gitbook.com/content/4ne9bLcvxMzpZqIc5yuj/blobs/BRrcA1J9lqYzXuKXFq2B/image.png" alt="" data-size="line"> icon on the main toolbar.

The **Builder pane** is used for creating and editing trackable models, also called trackable assets:

* [**Rigid Body assets**](#rigid-body-create) are created for tracking rigid objects.&#x20;
* [**Skeleton assets**](#skeleton-create) are created for tracking human motions.&#x20;
* [**Trained Markerset assets**](https://docs.optitrack.com/v3.2/motive/trained-markersets) are used to track objects that are neither rigid nor human skeleton templates.&#x20;

When created, trackable models store the positions of markers on the target object and use the information to auto-label the markers in 3D space. During the auto-label process, a set of predefined labels are assigned to 3D points using the solver pipeline, and the labeled dataset is then used for calculating the position and orientation of the corresponding Rigid Bodies or Skeleton segments. Auto-labeling is not available for Trained Markersets.&#x20;

The trackable models can be used to auto-label the 3D capture both in Live mode (real-time) and in the Edit mode (post-processing). Each created trackable model will have its own properties which can be viewed and changed under the [Properties pane](https://docs.optitrack.com/v3.2/motive-ui-panes/properties-pane). If new Skeletons or Rigid Bodies are created during post-processing, the *Take* will need to be auto-labeled again in order to apply the changes to the 3D data.

![Marker labels shown on some of the markers on the Actor Skeleton.](https://content.gitbook.com/content/4ne9bLcvxMzpZqIc5yuj/blobs/CDzNK3jOdYug1ohUCV40/image.png)

### Interface Overview

On the Builder pane, you can either create a new trackable asset or modify an existing one. Select the *Type* of asset you wish to work on, and then select whether you wish to create or make modifications to existing assets. Create and Modify tools for different Asset types will be explained in the sections below.

![Builder pane.](https://content.gitbook.com/content/4ne9bLcvxMzpZqIc5yuj/blobs/V5IGW1wLliZXvbF10RYk/image.png)

### Post-Processing&#x20;

**Edit Mode** is used for playback of captured *Take* files. In this mode, you can playback and stream recorded data and complete post-processing tasks, such as creating and modifying assets. The Cameras View displays the recorded 2D data while the 3D Viewport represents either recorded or real-time processed data as described below.

There are two modes for editing:

* **Edit:** Playback in standard Edit mode displays and streams the processed 3D data saved in the recorded *Take*. Changes made to settings and assets are not reflected in the Viewport until the *Take* is [reprocessed](https://docs.optitrack.com/v3.2/motive/reconstruction-and-2d-mode#applying-changes-to-3d-data).&#x20;
* **Edit 2D:** Playback in Edit 2D mode performs a live reconstruction of the 3D data, immediately reflecting changes made to settings or assets. These changes are displayed in real-time but are not saved into the recording until the *Take* is [reprocessed](https://docs.optitrack.com/v3.2/motive/reconstruction-and-2d-mode#applying-changes-to-3d-data) and saved. To playback in 2D mode, click the Edit button and select *Edit 2D*. &#x20;

<figure><img src="https://content.gitbook.com/content/4ne9bLcvxMzpZqIc5yuj/blobs/Sdz3K4gIFKcv4V4XfkNn/Live%20or%20Edit%20mode%20-%20switch%20to%202D.png" alt="" width="200"><figcaption><p>Click Edit to select the Edit mode.</p></figcaption></figure>

{% hint style="warning" %}
Regardless of the selected Edit mode, you must reprocess the *Take* to create new 3D data based on the modifications made.&#x20;
{% endhint %}

Please see the [Data Editing ](https://docs.optitrack.com/v3.2/motive/data-editing)page for more information about editing *Takes*.&#x20;

{% hint style="info" %}
**Defining Assets in Edit mode:**

If the Rigid Bodies, or Skeletons, are created in Edit mode, the corresponding *Take* needs to be [auto-labeled](https://docs.optitrack.com/v3.2/motive/labeling#auto-label). Only then will the Rigid Body markers be labeled using the Rigid Body asset and positions and orientations be computed for each frame. If the 3D data have not been labeled after edits on the recorded data, the asset may not be tracked.
{% endhint %}

## Rigid Body: Create

To create Rigid Bodies, select Rigid Body from the *Type* option and click the *Create* tab at the top. Here, you can create Rigid Body assets and track any markered-objects in the volume. In addition to standard Rigid Body assets, you can also create Rigid Body models for head-mounted displays (HMDs) and measurement probes as well

{% hint style="warning" %}
Tip: The recommended number of markers per Rigid Body is **4 \~ 12 markers**.&#x20;

You may encounter limits if using an excessive number of markers, or experience system performance issues when using the refine tool on such an asset. &#x20;
{% endhint %}

### Create a Rigid Body

* Select all associated Rigid Body markers in the [3D viewport](https://docs.optitrack.com/v3.2/viewport#perspective-view).
* On the Builder pane, confirm that the selected markers match those on the object you want to define as the Rigid Body.&#x20;
* Click *Create* to define a Rigid Body asset from the selected markers.

You can also create a Rigid Body using the following methods while the markers are selected:

* **Perspective View (3D viewport):** Right-click on the selected markers to access the context menu. Under the *Markers* section, click *Create Rigid Body*.
* **Assets pane:** While the markers are selected in Motive, click on the add <img src="https://content.gitbook.com/content/4ne9bLcvxMzpZqIc5yuj/blobs/3eUzlWiIo5pRC2YPhRm6/image.png" alt="" data-size="line"> button at the bottom of the [Assets pane](https://docs.optitrack.com/v3.2/motive-ui-panes/assets-pane).
* **Hotkey:** While the markers are selected, use the *Create Rigid Body* hotkey (Default: Ctrl +T).

![Creating a Rigid Body from selected markers&#x20;
using the right-click context menu.](https://content.gitbook.com/content/4ne9bLcvxMzpZqIc5yuj/blobs/kJCsWFXkMpMKNp3kDVHd/Create%20RB%20-%20Perspective%20view%20context%20menu.png) ![Rigid body defined from the selected markers.](https://content.gitbook.com/content/4ne9bLcvxMzpZqIc5yuj/blobs/FT9OTpWVxeBfYYnpr5IR/Rigid%20Body%20Bone%20-%20Unsolved.png)

Once the Rigid Body asset is created, the markers will be colored, labeled, and interconnected to each other. The newly created Rigid Body will be listed under the [Assets pane](https://docs.optitrack.com/v3.2/motive-ui-panes/assets-pane).

<figure><img src="https://content.gitbook.com/content/4ne9bLcvxMzpZqIc5yuj/blobs/qvunRhSJ2XopePXfmlXu/Builder%20Pane%20-%20Create%20RB%20selected.png" alt="" width="563"><figcaption><p>Create a Rigid Body.</p></figcaption></figure>

### Create an HMD Rigid Body

#### Supported HMD Clips

Motive supports a variety of Head Mounted Display (HMD) clips, including VIVE Focus 3, Valve Index, and Varjo XR4, to name a few.&#x20;

To see all supported clips or to add a custom clip to your configuration, browse to this folder on the Motive PC:&#x20;

**C:\ProgramData\OptiTrack\Motive\HMD**

<figure><img src="https://2559979491-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4ne9bLcvxMzpZqIc5yuj%2Fuploads%2FKgCGd9M4qlfKgdRtaicD%2FHMD%20Configuration%20Files.png?alt=media&#x26;token=2929071a-446b-45f4-ae63-4c57c0bbe8d6" alt="A screenshot of the Window c:\programdata\optitrack\motive\hmd, showing the various XML files saved with HMD configurations."><figcaption></figcaption></figure>

#### Create the HMD Rigid Body

For using OptiTrack system for VR applications, it is important that the pivot point of the HMD Rigid Body is placed at the appropriate location, at the root of the nose in between the eyes.&#x20;

When using the HMD clips, you can utilize the HMD creation tools in the Builder pane to have Motive estimate this spot and place the pivot point accordingly. Motive uses known marker configurations on the clip to precisely position the pivot point and set the desired orientation.

{% hint style="info" %}
HMDs with passive markers can utilize the [External Pivot Alignment](https://docs.optitrack.com/v3.2/motive-ui-panes/builder-pane) tool to calibrate the pivot point.
{% endhint %}

![Creating an HMD Rigid Body in the Builder pane.](https://content.gitbook.com/content/4ne9bLcvxMzpZqIc5yuj/blobs/TDdiGr6BPopxkCQeaARH/image%20\(419\)%20\(1\)%20\(1\)%20\(1\)%20\(8\).png)

1. Make sure Motive is configured for tracking [active markers](https://docs.optitrack.com/v3.2/active-components/active-marker-tracking#motive-settings).
2. Open the Builder pane under [View tab](https://docs.optitrack.com/v3.2/toolbar-command-bar#view) and click *Rigid Bodies*.
3. Under the *Type* drop-down menu, select HMD. This will bring up the options for defining an HMD Rigid Body.
4. If the selected marker matches one of the Active clips, it will indicate which type of Active Clip is being used.
5. Under the *Orientation* drop-down menu, select the desired orientation of the HMD. The orientation used for streaming to Unity is +Z forward and Unreal Engine is +X forward, or you can also specify the expected orientation axis on the client plugin side.
6. Hold the HMD at the center of the tracking volume where all of the active markers are tracked well.
7. Select all **8** HMD active markers in the [3D viewport](https://docs.optitrack.com/v3.2/viewport#perspective-view).
8. Click *Create*. An HMD Rigid Body will be created from the selected markers and it will initiate the calibration process.
9. During calibration, slowly rotate the HMD to collect data samples in different orientations.
10. Once all necessary samples are collected, the calibrated HMD Rigid Body will be created.

### Create a Measurement Probe Rigid Body

You can also define a measurement probe using the Builder pane. The measurement probe tool utilizes the precise tracking of OptiTrack mocap systems and allows you to measure 3D locations within a capture volume. *For more information, please read through the* [*Measurement Probe Kit Guide*](https://docs.optitrack.com/v3.2/motive/measurement-probe-kit-guide)*.*

![Calibrated probe in Motive.](https://content.gitbook.com/content/4ne9bLcvxMzpZqIc5yuj/blobs/3HHUPIFN69RoFyNfEMou/Builder%20Pane%20-%20Create%20Probe.png)

#### **Creating a probe using the Builder pane**

1. Open the Builder pane under the [View tab](https://docs.optitrack.com/v3.2/toolbar-command-bar#view) and click *Rigid Bodies*.
2. Bring the probe into the tracking volume and create a [Rigid Body](#rigid-body-create) from the markers.
3. Under the *Type* drop-down menu, select *Probe*. This will bring up the options for defining a Rigid Body for the measurement probe.
4. Select the Rigid Body created in step 2.
5. Place and fit the tip of the probe in one of the slots on the provided calibration block.
6. Note that there will be two steps in the calibration process: refining Rigid Body definition and calibration of the pivot point. Click the *Create* button to initiate the probe refinement process.
7. Slowly move the probe in a circular pattern while keeping the tip fitted in the slot, making a cone shape overall. Gently rotate the probe to collect additional samples.
8. After the refinement, Motive will automatically proceed to the pivot point calibration.
9. Repeat the same movement to collect additional sample data for precisely calculating the location of the pivot or the probe tip.
10. When sufficient samples are collected, the pivot point will be positioned at the tip of the probe and the *Mean Tip Error* will be displayed. If the probe calibration was unsuccessful, just repeat the calibration again from step 4.
11. Once the probe is calibrated successfully, a probe asset will be displayed over the Rigid Body in Motive, and live x/y/z position data will be displayed under the [Probe pane](https://docs.optitrack.com/v3.2/motive-ui-panes/probe-pane).

{% hint style="danger" %}
**Caution**

* The probe tip *MUST* remain fitted securely in the slot on the calibration block during the calibration process.
* Do not press in with the probe since the deformation from compressing could affect the result.
  {% endhint %}

{% hint style="info" %}
**Note: Custom Probes**

It's highly recommended to use the Probe kit when using this feature. With that being said, you can also use any markered object with a pivot arm to define a custom probe in Motive, but when a custom probe is used, it may have less accurate measurements; especially if the pivot arm and the object are not rigid and/or if any slight translation occurs during the probe calibration steps.
{% endhint %}

## Rigid Body: Modify

The Builder pane has tools to modify the tracking of a Rigid Body selected in Motive. To do so, select a single Rigid Body from the Viewport or Assets pane and click the *Modify* tab to display the options for editing a Rigid Body.

<figure><img src="https://2559979491-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4ne9bLcvxMzpZqIc5yuj%2Fuploads%2Fzs5a0yjsntoq5YQ7hLiO%2FBuilder%20Pane%20-%20Modify%20RB.png?alt=media&#x26;token=873a3617-deaf-46f1-aea2-68646fb68fe1" alt=""><figcaption><p>Builder Modify pane - with a Rigid Body selected.</p></figcaption></figure>

### Refine

The Rigid Body refinement tool improves the accuracy of Rigid Body calculation in Motive. When a Rigid Body asset is initially created, Motive references only a single frame to define the Rigid Body. The Rigid Body refinement tool allows Motive to collect additional samples to achieve more accurate tracking results by improving the calculation of expected marker locations of the Rigid Body as well as the position and orientation of the Rigid Body itself.

<figure><img src="https://content.gitbook.com/content/4ne9bLcvxMzpZqIc5yuj/blobs/307bxU8rQDCtnOXjKE0g/Builder%20Pane%20-%20Refine%20RB.png" alt=""><figcaption><p>Refine a Rigid Body from the Modify tab of the Builder pane.</p></figcaption></figure>

**Steps**

1. From the [View](https://docs.optitrack.com/v3.2/toolbar-command-bar#view) menu, open the Builder pane, or click the <img src="https://content.gitbook.com/content/4ne9bLcvxMzpZqIc5yuj/blobs/0d9nKFvbXJ9SXK3uHh39/Builder%20Pane%20button.png" alt="" data-size="line"> button on the toolbar.
2. Click on the Modify tab.
3. Select the Rigid Body to be refined in the Asset pane.&#x20;
4. To refine the asset in [Live mode](https://docs.optitrack.com/v3.2/control-deck#live-and-edit-mode), hold the physical selected Rigid Body at the center of the capture volume so that as many cameras as possible can clearly capture the markers on the Rigid Body.
   1. In the **Refine** section of the Modify tab of the Builder pane, click *Start...*
   2. Slowly rotate the Rigid Body to collect samples at different orientations until the progress bar is full.
5. You can also refine the asset in Edit mode. Motive will automatically replay the current take file to complete the refinement process.&#x20;

<div><figure><img src="https://content.gitbook.com/content/4ne9bLcvxMzpZqIc5yuj/blobs/vTj3Rkh94X57qK7G4GFj/image.png" alt=""><figcaption><p>Rigid Body Refinement in Progress.</p></figcaption></figure> <figure><img src="https://content.gitbook.com/content/4ne9bLcvxMzpZqIc5yuj/blobs/KhpRE3uMF3pQYD0omBrn/Refine%20RB%20-%20results.png" alt=""><figcaption><p>Rigid Body Refinement Results.</p></figcaption></figure></div>

### Probe Calibration

The *Probe Calibration* feature under the Rigid Body edit options can be used to re-calibrate a pivot point of a measurement probe or a custom Rigid Body. This step is also completed as one of the calibration steps when first creating a measurement probe, but you can re-calibrate it under the *Modify tab*.

#### **Steps**

1. In Motive, select the Rigid Body or a measurement probe.
2. Bring out the probe into the tracking volume where all of its markers are well-tracked.
3. Place and fit the tip of the probe in one of the slots on the provided calibration block.
4. Click *Start.*
5. Once it starts collecting the samples, slowly move the probe in a circular pattern while keeping the tip fitted in the slot, making a cone shape overall. Gently rotate the probe to collect additional samples.
6. When sufficient samples are collected, the mean error of the calibrated pivot point will be displayed.
7. Click *Apply* to use the calibrated definition or click *Cancel* to calibrate again.

### Location/Orientation

The *Modify* tab is used to apply translation or rotation to the pivot point of a selected Rigid Body. A pivot point of a Rigid Body represents both position (x,y,z) and orientation (pitch, roll, yaw) of the corresponding asset.

{% hint style="info" %}
You can also use the [Gizmo tools](https://docs.optitrack.com/v3.2/motive/assets/gizmo-tool-translate-rotate-and-scale) to quickly modify the pivot point of a Rigid Body.
{% endhint %}

<div><figure><img src="https://content.gitbook.com/content/4ne9bLcvxMzpZqIc5yuj/blobs/3q7Pavhh5Bj4GZh47iFG/Builder%20Pane%20-%20Modify%20RB%20-%20Location%20settings.png" alt=""><figcaption><p>Modify Rigid Body Location settings on the Builder pane. </p></figcaption></figure> <figure><img src="https://content.gitbook.com/content/4ne9bLcvxMzpZqIc5yuj/blobs/jPzDuZvaaJBVdcxWb3gW/Builder%20Pane%20-%20Modify%20RB%20Orientation%20expanded.png" alt=""><figcaption><p>Modify Rigid Body Orientation settings on the Builder pane.</p></figcaption></figure></div>

#### **Location**

Use this tool to translate a pivot point in x/y/z axis (in mm). You can also reset the translation to set the pivot point back at the geometrical center of the Rigid Body.

#### **Orientation**

Use this tool to apply rotation to the local coordinate system of a selected Rigid Body. You can also reset the orientation to align the Rigid Body coordinate axis and the global axis. When resetting the orientation, the Rigid Body must be tracked in the scene.

### OptiTrack Clip Tool

The OptiTrack Clip Tool recalibrates an HMD with OptiTrack HMD Clips to position its pivot point at an appropriate location. The steps are the same as when first creating the [HMD Rigid Body](#creating-hmd-rigid-body).

### Spherical Pivot Placement

This feature is useful when tracking a spherical object (e.g., a ball). It will assume that all of the markers on the selected Rigid Body are placed on a surface of a spherical object, and the pivot point will be calculated and re-positioned accordingly. Simply select a Rigid Body in Motive, open the Builder pane to edit Rigid Body definitions, and then click *Apply* to place the pivot point at the center of the spherical object.

### Align To...

The Align To... section contains preset options for aligning the pivot point of a rigid body.&#x20;

<figure><img src="https://2559979491-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4ne9bLcvxMzpZqIc5yuj%2Fuploads%2Fsg5t3Q2wYrbru3O03eB2%2FBuilder%20Pane%20-%20Modify%20RB%20Align%20To%20collapsed.png?alt=media&#x26;token=9f6bf4a3-3b97-48bc-a770-dd01b4f0ce72" alt=""><figcaption></figcaption></figure>

Click the <img src="https://2559979491-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4ne9bLcvxMzpZqIc5yuj%2Fuploads%2F3zSzW7lG6wrCh57Q0VZN%2FPane%20Items%20closed.png?alt=media&#x26;token=c130f365-4ad8-4229-a1fd-63d8fd7160c9" alt="" data-size="line"> button to see the options available:

<figure><img src="https://2559979491-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4ne9bLcvxMzpZqIc5yuj%2Fuploads%2Fcd3ywPZXh3876N2RKHQW%2FBuilder%20Pane%20-%20Modify%20RB%20Align%20to%20Options.png?alt=media&#x26;token=3e435a22-d7bb-40d2-aa81-cb2a75b0f1f5" alt=""><figcaption></figcaption></figure>

#### Align to Geometry

The Align to Geometry feature provides an option to align the pivot of a rigid body to a geometry offset. Motive includes several standard geometric objects that can be used, as well as the ability to import custom objects created in other applications. This allows for consistency between Motive and external rendering programs such as Unreal Engine and Unity.&#x20;

To use this feature, select the rigid body from the assets pane. In the Properties pane, click the <img src="https://content.gitbook.com/content/4ne9bLcvxMzpZqIc5yuj/blobs/hz5FFudUzgo29z3AGaAZ/Motive%20Context%20Menu.png" alt="" data-size="line"> button and select *Show Advanced* if it is not already selected. &#x20;

Scroll to the *Visuals* section of the asset's properties. Under *Geometry*, select the object type from the list.&#x20;

<figure><img src="https://content.gitbook.com/content/4ne9bLcvxMzpZqIc5yuj/blobs/8lEa39aqYzxsul1tgZoZ/Rigid%20Body%20Align%20to%20Geometry.png" alt=""><figcaption><p>Geometry Options for Assets.</p></figcaption></figure>

To import your own object, select *Custom Model*. This will open the *Attached Geometry* field. Click on the file folder icon to select the .obj or .fbx file to import into Motive. &#x20;

<figure><img src="https://content.gitbook.com/content/4ne9bLcvxMzpZqIc5yuj/blobs/jPr1gwGxVwp885Jak75g/image.png" alt=""><figcaption><p>Select custom Model. </p></figcaption></figure>

#### Align to Camera

To align an asset to a specific camera, select both the asset and the camera in the 3D Viewport. Click *Camera* in the *Align to...* field in the Modify tab.

#### Align to Rigid Body

To align an asset to an existing Rigid Body, you must be in 2D edit mode. Click the Edit button at the bottom left and select *EDIT 2D* from the menu.&#x20;

<figure><img src="https://content.gitbook.com/content/4ne9bLcvxMzpZqIc5yuj/blobs/cuaTjqGbXDGcKbAcf8YH/image.png" alt=""><figcaption><p>Switch from 3D to 2D edit mode.</p></figcaption></figure>

The asset you wish to align must be unsolved. If necessary, right-click on the asset in the Assets pane and select *Remove Solve* from the context menu.&#x20;

Once the asset is unsolved, select it in the 3D Viewport, then select the rigid body that you wish to align it to. Once both assets are selected, click *Rigid Body* in the *Align To...* field.&#x20;

#### Align to Marker

The Align to Marker feature sets the pivot point at the location of a specific marker. To use, select the asset from the Assets pane, select the marker you wish to align the pivot point with, then select *Align To...Marker*.&#x20;

{% hint style="warning" %}
Make sure only 1 marker is selected for proper alignment.&#x20;
{% endhint %}

To align the pivot point between a subset of markers, use the [Gizmo Tool](https://docs.optitrack.com/v3.2/motive/assets/gizmo-tool-translate-rotate-and-scale).&#x20;

#### Align to Origin

Stationary rigid bodies can be used to maintain a consistent global origin for a mocap volume. Once the pivot point of a rigid body is aligned to the origin, you can use that rigid body to set world origin each day. This option is also helpful if you do not have easy access to the floor.&#x20;

{% hint style="info" %}
Before using this feature, make sure the system has an exceptional calibration.&#x20;
{% endhint %}

Once you have the desired calibration, select the rigid bodies you wish to align then select *Align To...Origin*.&#x20;

#### Reset Pivot

The Reset Pivot feature returns the pivot point to the default location.&#x20;

### Asset Dropdown Menu

By default, the Modify tab of the Builder pane is locked to the asset selected in the 3D Viewport. To change the asset from the Builder pane instead, click the <img src="https://content.gitbook.com/content/4ne9bLcvxMzpZqIc5yuj/blobs/VCGDcUuRG5rNVydXEMhT/image.png" alt="" data-size="line"> icon at the top of the Modify tab to unlock the drop-down list.&#x20;

<figure><img src="https://content.gitbook.com/content/4ne9bLcvxMzpZqIc5yuj/blobs/lzKOy3Lysm2uHpI1OR2f/Builder%20Pane%20-%20Modify%20RB%20Asset%20selection%20locked.png" alt=""><figcaption><p>Asset Selection dropdown in Builder Pane Modify tab.</p></figcaption></figure>

<figure><img src="https://content.gitbook.com/content/4ne9bLcvxMzpZqIc5yuj/blobs/HKxZtNYHWe9Dx9AX9wff/Builder%20Pane%20-%20Modify%20RB%20unlock%20asset%20selection.png" alt=""><figcaption><p>Asset Selection dropdown - unlocked.</p></figcaption></figure>

{% hint style="warning" %}
To work with [Marker Constraints](#marker-constraints) and/or [Marker Sticks](#marker-sticks), you must select the items you wish to modify in the 3D viewport.&#x20;
{% endhint %}

## Skeleton: Create

From the *Create* tab, select the Skeleton option from the *Type* dropdown menu. Here, you select which [Skeleton Marker Set](https://github.com/OptiTrack/GitBook-Wiki/blob/main/motive/Skeleton-tracking.md#placing-the-markers) to use, choose the calibration pose, and create the Skeleton model.

### Create a Skeleton

**Step 1.**

Select a Skeleton Marker Set template from the *Template* drop-down menu. The Builder pane will display a Skeleton avatar that shows where the markers need to be placed on the subject for the selected template. When the [6 Rigid Body Skeleton](https://docs.optitrack.com/v3.2/markersets/rigid-body-skeleton-markerset) template is selected, the display will show where to place the rigid bodies. Right-click and drag the mouse to rotate the model view.&#x20;

<figure><img src="https://content.gitbook.com/content/4ne9bLcvxMzpZqIc5yuj/blobs/LH7akEUft9u9LiujgBOX/image.png" alt="" width="308"><figcaption><p>Options to Create a Skeleton.</p></figcaption></figure>

**Step 2.**

Refer to the avatar and place the markers on the subject accordingly. For accurate placements, ask the subject to stand in the calibration pose while placing the markers. It is important that these markers get placed at the right spots on the subject's body for the best Skeleton tracking. Thus, extra attention is needed when placing the [Skeleton markers](https://github.com/OptiTrack/GitBook-Wiki/blob/main/motive/Skeleton-tracking.md#placing-the-markers).

{% hint style="info" %}
The magenta markers indicate the [segment markers](https://github.com/OptiTrack/GitBook-Wiki/blob/main/motive/Skeleton-tracking.md#segment-markers) that can be placed at a slightly different position within the same segment.
{% endhint %}

**Step 3.**

Double-check the marker counts and their placements. It may be easier to use the [3D viewport](https://docs.optitrack.com/v3.2/viewport#perspective-view) in Motive to do this. The Builder pane will track the detected markers.

**Step 4.**

In the Builder pane, once the number of *Markers Needed* and *Markers Detected* match, the Create button will become active. If Skeleton markers are not automatically detected, manually select them from the [3D perspective view](https://docs.optitrack.com/v3.2/viewport#perspective-view).

**Step 5.**

Assign a *Name* to the skeleton. Motive will use this name as a prefix when creating skeleton marker labels. You can also assign custom labels by loading previously prepared [marker-name XML](https://docs.optitrack.com/v3.2/motive-ui-panes/constraints-pane/constraints-xml-files) files after the skeleton is created.&#x20;

**Step 6.**

Next step is to select the Skeleton creation pose settings. Under the *Pose* section drop-down menu, select the desired calibration pose for defining the Skeleton. This is set to the T-pose by default. Note that the image in the Builder pane remains in A-pose regardless of your selection.

**Step 7.**

Ask the subject to stand in the selected calibration pose. Standing in a proper calibration posture is important because the pose of the created Skeleton will be calibrated from it. For more details, read the [calibration poses](https://github.com/OptiTrack/GitBook-Wiki/blob/main/motive/Skeleton-tracking.md#calibration-pose) section.

**Step 8.**

Click Create to create the Skeleton. Once the Skeleton model has been defined, confirm all Skeleton segments and assigned markers are located at expected locations. If any of the Skeleton segments seem to be misaligned, delete and create the Skeleton again after adjusting the marker placements and the calibration pose.

{% hint style="info" %}
**In Edit Mode**

If you are creating a Skeleton in the post-processing of captured data, you will have to [auto-label](https://docs.optitrack.com/v3.2/motive/labeling#auto-label) the Take to see the Skeleton modeled and tracked in Motive.
{% endhint %}

![Defining Skeleton from a Skelton Marker Set.](https://content.gitbook.com/content/4ne9bLcvxMzpZqIc5yuj/blobs/jR8QuxgWhFxQdLclcmSR/Builder%20Pane%20-%20Create%20Skeleton%20with%20Viewport.png)

## Skeleton: Modify

<figure><img src="https://2559979491-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4ne9bLcvxMzpZqIc5yuj%2Fuploads%2FINs8WkSTjK9wBRdWMmnl%2FBuilder%20Pane%20-%20Modify%20Skeleton%20options.png?alt=media&#x26;token=b92e0a27-01ad-4a2a-8c89-8304953ada9b" alt=""><figcaption></figcaption></figure>

### Update From Selection

This function recalibrates existing Skeleton assets using the current Skeleton information.&#x20;

To recalibrate a Skeleton, select all of the associated Skeleton markers from the perspective view. Make sure the selected Skeleton is in a calibration T-pose, and click the <img src="https://2559979491-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4ne9bLcvxMzpZqIc5yuj%2Fuploads%2Fbfzwj1oow5MaTOjlAM38%2FPane%20Items%20closed.png?alt=media&#x26;token=774af1b2-8be0-423e-b517-17da8161a09c" alt="" data-size="line"> button to see the available options.&#x20;

<figure><img src="https://2559979491-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4ne9bLcvxMzpZqIc5yuj%2Fuploads%2FVd6HPNTPXBX0aLUBYncG%2FBuilder%20Pane%20-%20Modify%20Skeleton%20from%20Selection%20expanded%20CROPPED.png?alt=media&#x26;token=ea2b45cd-d192-4a5c-ba33-0b6f5566b44a" alt=""><figcaption></figcaption></figure>

* **Bones and Constraints:** This option recalibrates the selected skeleton using the same Skeleton Marker Set and refreshes the constraint locations. This can also be done using the **Ctrl + R** hotkey.
* **Constraints Only:** This options recalibrates the selected skeleton's constraints based on the current location of the markers, without recalibrating bones.&#x20;

You can also update the skeleton from the context menu in the [Assets pane](https://docs.optitrack.com/v3.2/motive-ui-panes/assets-pane) or in the [3D Viewport](https://docs.optitrack.com/v3.2/viewport#perspective-view).

{% hint style="danger" %}
Skeleton recalibration does not work with Skeleton templates that include additional markers.
{% endhint %}

## Trained Markersets: Create

Users can create assets from any object that is not a Rigid Body or a pre-defined Skeleton using the Trained Markersets feature. This article will cover the basics of creating and modifying a Trained Markerset asset from the Builder pane. Please refer to the [Trained Markersets](https://docs.optitrack.com/v3.2/motive/trained-markersets) article for more information on using this feature.&#x20;

<figure><img src="https://content.gitbook.com/content/4ne9bLcvxMzpZqIc5yuj/blobs/n4QGs2YzNBAAzxYZFQEm/image.png" alt="" width="563"><figcaption><p>Create a Trained Markerset asset from the Build pane.</p></figcaption></figure>

#### Steps

1. Attach an adequate number of markers to your flexible object. This is highly dependent on the object but should cover at least the outline and any internal flex points. e.g., if it's a mat, the mat should have markers along the edges as well as dispersed markers in the middle in an asymmetrical pattern.
2. Record the movements you want of the object, trying to get as much of the full range of motion as possible.&#x20;
3. In Edit mode, select the markers attached to the object.&#x20;
4. From the *Create* tab of the Builder pane, select *Markerset* as the Type. Name the asset, then click *Create from Selection*.&#x20;

### Trained Markersets: Train and Modify

Once the asset is created, use the Training function so Motive can learn the object's full range of motion and how it moves through 3D space. Click *Train from Take* then playback the .tak file created in step 2 of the asset creation. Use the *Clear* button to remove the asset's existing training.

<figure><img src="https://content.gitbook.com/content/4ne9bLcvxMzpZqIc5yuj/blobs/3yBI3EV5fBoOhOsto6mc/Screenshot%202023-09-14%20183317.png" alt=""><figcaption><p>Builder Pane Modify Options for Trained Markersets.</p></figcaption></figure>

### Bones

In Motive, a Bone is a virtual structure that connects two joints and represents a segment of a virtual skeleton or Trained Markerset. To access these functions, select either the entire asset (to use the auto-generate option), or select the specific markers or bones that you would like to modify in the 3D Viewport.&#x20;

<figure><img src="https://content.gitbook.com/content/4ne9bLcvxMzpZqIc5yuj/blobs/mqsqsnTC14kbNgGavzLc/image.png" alt=""><figcaption></figcaption></figure>

<table><thead><tr><th width="100">Button</th><th>Function</th></tr></thead><tbody><tr><td><img src="https://content.gitbook.com/content/4ne9bLcvxMzpZqIc5yuj/blobs/dZIEFlo4F4FcEKurQmoM/image.png" alt="" data-size="line"></td><td>Auto-generates bones at flex points for the selected asset.</td></tr><tr><td><img src="https://content.gitbook.com/content/4ne9bLcvxMzpZqIc5yuj/blobs/lOamKXuT9VXKCkB9wlLC/image.png" alt="" data-size="line"></td><td>Adds (+) or Removes (-) the selected bone(s).</td></tr><tr><td><img src="https://content.gitbook.com/content/4ne9bLcvxMzpZqIc5yuj/blobs/sLVx7HVQiy2ek9q3ESGa/image.png" alt="" data-size="line"></td><td>Adds a bone chain between two selected bones. Whichever bone is selected first becomes the parent bone, the second becomes the child bone.</td></tr><tr><td><img src="https://content.gitbook.com/content/4ne9bLcvxMzpZqIc5yuj/blobs/ITwghvktS28Siu94aVvA/image.png" alt="" data-size="line"></td><td>Unparents the selected bone or bones. This removes the bone chain between the bones.</td></tr><tr><td><img src="https://content.gitbook.com/content/4ne9bLcvxMzpZqIc5yuj/blobs/78iZRaK8mCVJ1GdHks6X/image.png" alt="" data-size="line"></td><td>Reroots the selected child bone and makes it the parent in the bone chain. </td></tr></tbody></table>

### Marker Constraints

<figure><img src="https://content.gitbook.com/content/4ne9bLcvxMzpZqIc5yuj/blobs/z8EGqXZhAajDOUmQk9mF/Screenshot%202023-09-14%20154223.png" alt=""><figcaption></figcaption></figure>

You can add or remove marker constraints (referred to as [asset model markers](https://docs.optitrack.com/v3.2/motive/data-recording#marker-types-in-motive) in version 3.0 and earlier) from an asset using the Builder pane.&#x20;

#### **Steps**

1. From the Viewport visual options, enable selection of Marker Constraints.
2. Access the Modify tab on the Builder pane.
3. Select the asset whose marker constraints you wish to modify.
4. in the 3D Viewport, CTRL + left-click on a marker constraint that's associated with the selected asset. Click the <img src="https://content.gitbook.com/content/4ne9bLcvxMzpZqIc5yuj/blobs/CZ9XS4i738ahiQB7eBCA/Add%20button.png" alt="" data-size="line"> button to add the marker constraint to the asset definition. To remove it, click the <img src="https://content.gitbook.com/content/4ne9bLcvxMzpZqIc5yuj/blobs/igZMC0kNKAOSwvBls8nQ/image.png" alt="" data-size="line"> button.
5. On the Marker Constraints section of the Builder pane, click + to add the marker to the definition or - to remove the marker.
6. Use the Constraints pane to modify marker label and/or colors.

### Marker Sticks

<figure><img src="https://content.gitbook.com/content/4ne9bLcvxMzpZqIc5yuj/blobs/PytX6NgIwLroKj5tuQNL/Builder%20Pane%20Marker%20Sticks.png" alt=""><figcaption></figcaption></figure>

Motive includes the ability to modify Marker Sticks for all asset types, directly from the Builder pane. Select two or more of the asset's markers in the 3D Viewport to activate this tool set.&#x20;

<table><thead><tr><th width="100" align="center">Button</th><th>Function</th></tr></thead><tbody><tr><td align="center"><img src="https://content.gitbook.com/content/4ne9bLcvxMzpZqIc5yuj/blobs/unOHftvWfe7iU4hXFUqG/Screenshot%202023-09-14%20163616.png" alt="" data-size="line"></td><td>Changes the color of the selected Marker Stick(s).</td></tr><tr><td align="center"><img src="https://content.gitbook.com/content/4ne9bLcvxMzpZqIc5yuj/blobs/huDPQPCud797x726Js3Y/Screenshot%202023-09-14%20163633.png" alt="" data-size="line"></td><td>Autogenerates Marker Sticks for the selected Trained Markerset asset. </td></tr><tr><td align="center"><img src="https://content.gitbook.com/content/4ne9bLcvxMzpZqIc5yuj/blobs/604bFWeOm36i1B34j2Mi/Screenshot%202023-09-14%20163124.png" alt="" data-size="line"></td><td>Connects all of the selected Markers to each other.</td></tr><tr><td align="center"><img src="https://content.gitbook.com/content/4ne9bLcvxMzpZqIc5yuj/blobs/V8QAkXYseFfMq8zmfbWB/Screenshot%202023-09-14%20163644.png" alt="" data-size="line"></td><td>Creates Marker Sticks based on the order in which the markers were selected.</td></tr><tr><td align="center"><img src="https://content.gitbook.com/content/4ne9bLcvxMzpZqIc5yuj/blobs/CmGrCPyy2ee8wghrzOY2/Screenshot%202023-09-14%20154836.png" alt="" data-size="line"></td><td>Removes the selected Marker Stick(s).</td></tr></tbody></table>
