> For the complete documentation index, see [llms.txt](https://help.imotions.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.imotions.com/lab/import-and-post-processing/vr-eye-trackers/how-to-post-import-video-and-eye-tracking-data-from-varjo-and-synchronize-other.md).

# How to: Post-import video and eye tracking data from Varjo and synchronize other biosensors

Record VR content and eye tracking with Varjo Base, import it into iMotions Lab, and merge it with other sensor data using a Glasses sync study.

This article will walk you through the process for post importing into iMotions any VR experience that can be played on the Varjo headset by using the Varjo Base software to record video and eye tracking data. This will allow you to use any Varjo compatible content for study that can be displayed on the headset without need to have access to a game engine or source code files.

Prerequisites:

* Varjo headset (XR, VR 1,2 or 3)
* [Varjo base latest software](https://varjo.com/downloads/)
* iMotions Lab

## Step 1: Recording your VR experience

To record your VR experience you will need to have your chosen program running as well as the Varjo base software which is required.

* Open the Varjo base software interface (sometimes a system tray icon)
  * First you will need to run a calibration on the person to be recorded by selecting the eye tracking button. (To ensure eye tracking quality a calibration will need to be run every time a headset is put on even if it’s the same person who took it off and put it back on). Pushing the Eye tracking button will launch the calibration process in the headset. They should simply follow the dot with their eyes in the headset to calibrate. There are two options for starting the eye tracking calibration in Varjo base:
    * 1: you can press the button in the Headset Menu on the right marked Eye tracking start.
    * 2 you can enter the Analytics window under developer tools and press eye tracking on the bottom menu that appears

![mceclip0.png](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-eefc2a180528c549a6604de0970bf61234b393f9%2F5420149ef1_gqaq8riuyrrymikiyuqmceclip0.webp?alt=media) ![2.png](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-09c821e168c458e8572f9953ce00d255f9118861%2Fe25d14c3c6_2-4-.webp?alt=media)

* Once the calibration is done you will need to enable logging for the eye tracking data as a file. This will create the CSV file with the eye tracking data - do this by selecting the "On" option in the pull down menu in the eye tracking popup menu

![v4.PNG](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-5bae7c46d06810f73e6f8a0bf2c1eba338d308cb%2Fc4f7eb2e55_v4.webp?alt=media)

**Warning! Do not change the setting for Advanced View Options away from Left and Peripheral.**

![v3.PNG](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-c4954271dd7911c82309121602560731a8386f84%2F4c2445a739_v3.webp?alt=media) ![mceclip8.png](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-2f35bff85a0409cd9766d81b9bffbf59598384d4%2F251dbddb5e_dpca5hmcjegn0k1alkmu0gmceclip8.webp?alt=media)

{% hint style="warning" %}
**Note**

Please note that it's not possible to select between peripheral and focus views when using the Varjo Aero. Continue to select the "Left" eye option.
{% endhint %}

* The last step is to start recording by pressing the screen recording button. At the end of the session you can stop recording with the same button. Each recording will be brought into iMotions as a separate respondent

![mceclip2.png](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-6b6498725177fcc668ae4d7d8aa26726ad9f301d%2F516f73c740_pcle7y3fek2bkyyuhjbhdgmceclip2.webp?alt=media)

### Step 2: Importing your data into iMotions

* Before importing your data into iMotions you will need to separate recordings into separate folders. To do this go to the Varjo folder under your Videos folder. In the example below we have 2 recordings each will have two files a video file and a csv data file.

![mceclip10.png](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-34fc533e7d2c3388660725206c7ba7bf5562ae5e%2Fe11128a740_Varjo1.webp?alt=media)

* Next create a new folder for each recording with the name of the folder being what you want as the name in the respondent list for the study

  ![mceclip11.png](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-b85194dedabf165881a254afd4dfffc2ce16e68f%2F6a00c788c6_Varjo2.webp?alt=media)
* Finally move each pair of files into their individual folders so that each folder has one video and csv data file. Be careful that the names of the two files match and not to mix them up.

**Note: the name of the folder will be the name of the subject when you import it into iMotions: if you intend to merge this study later with another study such as GSR you can save time by having a consistent naming process. iMotions will later autodetect subjects by their name.**

* Now to import your data, open iMotions and navigate to File in the top menu and select "Create Study from Glasses data" opens a menu where you can select the Varjo VR

![mceclip9.png](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-ffb404d710477eb00038a0d24821f792701c2b13%2Fa25ca4622d_ckhyrekabegi9jj4wtdkywmceclip9.webp?alt=media)

* Select browse and in the file explorer window that opens, navigate to the folder where your Varjo base recordings are. By default these are saved in the Varjo folder under Videos. Be careful to select the whole Varjo folder and not an individual recording folder you made earlier so that you can batch import all your data.

![mceclip5.png](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-5ba2bf758e5cf0ec31d6547b320a030cc78540e6%2F32337c6346_Varjo4.webp?alt=media)

* All the recordings found in the folder will then be imported into iMotions for analysis as a new study in the iMotions Library.

![mceclip12.png](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-b40ac58f2ee5ecd9e0708d9f3856cd74ab4ed44b%2Ffa9ea376d0_Varjo5.webp?alt=media)

## Part 2. Recording and merging Biometric data with your Varjo post import study:

This process will allow you to record any content in VR while simultaneously collecting other sensor data in iMotions then merge the two studies together into one study. This process will leverage all the directions above in step 3.

To accomplish this we will use the glasses sync feature in iMotions.

### Stepwise description

#### Step 1: Setting up the study in iMotions

*The study in iMotions consists only of a single stimulus, a video with a counter. This "Glasses sync" stimulus will enable you later to detect the offset between starting the study in iMotions (and collecting the data from the other sensors) and starting the recording of eye tracking data.* *It is not possible to show other stimuli than the "Glasses sync" stimulus in this type of study.*

1\. Connect all relevant sensors (apart from the Eye tracking since that will be done by Varjo base) to your PC. *Please see the articles on your sensor for initial setup instructions if you haven't already done so*

2\. Create a new study in iMotions. Leave the checkbox for the eye tracker model blank.

![image.png](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-4efb774c720115470fbbc9713eb43fff00ea3b85%2F9d5a36e3d9_ys0uhwac2ekec8bt9uyhhw.webp?alt=media)

3\. Open the menu to add stimuli

4\. Select the "Glasses sync" option

![image\_\_3\_.png](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-f48b90fad5a915e1b7e6479e3d4aed4bcef0ae5f%2Fb5d2b4937e_lsf6cbabvk2eszbjsfsi0a.webp?alt=media)

5\. The "Glasses sync" counter will now show in the stimulus bar. It is not possible to add additional stimuli to this type of study.

![image\_\_6\_.png](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-2b5bf12e3275b4a5a2cde9fd7780d3cf4a9e54ed%2Fd35243f0a9_eaqs5gutceehkoy7co2rxg.webp?alt=media)

#### Step 2: Collecting data

*It matters in which order you start the collection of your eye tracking glasses data and recording of the data in iMotions. You will have to start the eye tracking glasses recording before the iMotions study, and then end the eye tracking glasses recording after ending the iMotions study.*

![Glasses\_Sync\_Infographic.png](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-6fb64452ac93eb1bb08cd0458257364f2707c3ad%2Fc9fcd31bc9_x4pfnhuqge2lbml4nrweia.webp?alt=media)

*During the data collection, your respondent will have to look at the PC screen showing the "Glasses sync" stimulus at least once for a couple of seconds. This can be done by bringing up the virtual desktop and having the subject look at it while the sync clock is running. The researcher can bring up the virtual desktop from the Varjo Base software under the workspace tab on the right* ![mceclip1.png](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-45a62c7e99c5bcb6f0c521d43fec71ff2c4e6ccd%2Fbe99b3e9e4_3exf5mboze6cr5w0u02qfwmceclip1.webp?alt=media) *This shared event will later allow you to synchronize the two datasets.*

2\. In your iMotions study, add a new respondent (if you make the respondent name here the same as the folder name of the Varjo import subfolders the import process will match respondents by name later on otherwise you will have to manually pair subject together)

3\. Double check the subject has been calibrated in the Varjo base software and press the record button in Varjo base.

![mceclip0.png](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-1e0e16e1cf20b672ad9c55edf90c98a7302d91b2%2F01aaecc521_l6e8qefrkqgrwbj6m76ogmceclip0.webp?alt=media)

4\. After this, start the recording in iMotions

5\. Once your respondent has completed the task, end the recording in iMotions first. (You do so by using the shortcut that you defined in Global Settings > Slide show for advancing to the next slide or ending a data collection. If you are working with a dual screen setup and see the [Sensor Data Preview](https://help.imotions.com/lab/data-collection/sensor-preview-window.md), you can just click "End recording".)

![mceclip4.png](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-52d3ebac3572cc0b306bc096218412780d6e6422%2Fbfaa6dccbf_j5q0pm6rue2zy1zfkpgs1q.webp?alt=media)

6\. Then, stop the recording in Varjo Base

7\. Repeat for all subsequent respondents

#### Step 3: Post importing eye tracking glasses data

Follow all steps on the top of the article for post import Varjo VR video and eye tracking data.

{% hint style="warning" %}
**Note**

Post-importing the data only includes data from the left eye into iMotions. This data is duplicated from the left eye signal, and appears as both right and left eyes once imported into iMotions. It's possible to include data from both eyes by using the Unity plugin for iMotions with Varjo headsets (you can [read more about this here](https://help.imotions.com/lab/study-setup-and-design/virtual-reality/varjo/varjo-aero-vr3-xr3-set-up-how-to-get-system-and-unity-project-ready-for-imotions.md)).
{% endhint %}

#### Step 4: Merging studies and correcting for temporal offset

*In this final step, you will merge your two studies: The multimodal recordings that you made in iMotions and the recordings from your eye tracking glasses, that you post imported into iMotions. After matching the respondents, you will be able to detect the temporal offset between starting the two recordings (from the eye tracking glasses and in iMotions), which will then be used to synchronize their data.*

1\. Right click on the study that was created from the post imported eye tracking glasses data

2\. Select to "Merge with another study"

![image\_\_9\_.png](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-3e666097b278597275a93319f0825d0c136747ea%2Fb1da998dcd_image__9_.webp?alt=media)

3\. iMotions will then search through your study library and suggest a list of all recordings that contain the "Glasses sync" stimulus.

![image\_\_10\_.png](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-c0280ad57055f3a5f61fbdb606a2fd3999fdfc56%2F54a4c2a6fe_image__10_.webp?alt=media)

4\. Select the study that you want to merge with your eye tracking glasses recordings and continue by clicking "Merge studies"

5\. If you used the same Respondent ID in the iMotions recording as well as the filenames from your eye tracking glasses, they will automatically be matched. Otherwise, you can manually match them by selecting the recordings that belong together and clicking on "add match".

![image\_\_11\_.png](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-6f665590be63176f11a131a585a8ad3861a4cecd%2F7dd3f4ea37_msqliqvxcuchmtxbuxnxoa.webp?alt=media)

6\. Continue by clicking "Merge respondents"

7\. In your study library, you will now see a third study created from the original recordings as well as the post imported eye tracking glasses data.

![image\_\_12\_.png](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-083d04a50fef939b3a7f842595f5d96025b08186%2F7968737d77_jhnbqhm2kkcmul11hr8l7w.webp?alt=media)

8\. For every respondent, select that you want to "Sync glasses video" with the data originally collected in iMotions

![image\_\_13\_.png](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-c4685f24bd2aa4adf751346647ede0df395fce4f%2F85459212dd_4qckkzgvu0k6nbxlw07xw.webp?alt=media)

9\. A new window will open, in which you can replay the eye-tracking glasses' video. Find the time point when the respondent looked at the "Glasses sync" counter. Pause the video and enter the time that the counter shows in the text field below the video.

![mceclip2.png](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-f7d2e63ab58bd587968fcdf5265e04cdc3887b4d%2F1177566b93_suwxzdadkalsz5wuwe4qmceclip2.webp?alt=media)

10\. Continue and "Set sync time".

11\. Repeat steps 5.8-5.10 for all your respondents.

Now, your data has been synchronized. You can replay your eye-tracking glasses' recording together with all the other data that you collected in iMotions. You are also able to perform signal processing, create visualizations, and export your data.

![mceclip3.png](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-be2bd22a8355c210b597ecb6ac6ac7188c3078df%2F54a149cf5f_17o2vznoretc76e5ny6wwmceclip3.webp?alt=media)

Please find more information about this in the following sections of the Help Center:

* Signal processing
* Data visualization
* Exports

### Nota bene: Precision of this synchronization

Please be aware that this is not a perfect synchronization. Retrieving the offset between the two recordings depends both on the framerate with which your PC screen updated the "Glasses sync" counter as well as the framerate of your eye tracking glasses' scene camera. Therefore, an offset of up to about one scene camera frame is expected, which is typically 30 to 40 ms. Also, different paces of your PC's internal clock, as well as your eye tracking glasses' internal clock, may affect the precision of this synchronization, especially for very long recordings.

Next steps:

[Creating an Analysis](https://help.imotions.com/lab/getting-started/analysis-overview.md)

[Replay recordings](https://help.imotions.com/lab/analysis/signal-processing-r-notebooks/my-library/respondent-replay.md)

[Creating Gazemappings for Heatmaps and Areas of interests](https://help.imotions.com/lab/analysis/eye-tracking/gaze-mapping/gaze-mapping.md)

AOIs


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.imotions.com/lab/import-and-post-processing/vr-eye-trackers/how-to-post-import-video-and-eye-tracking-data-from-varjo-and-synchronize-other.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
