Skip to main content

OpenSesame Plugin: Titta Eye Tracking

An OpenSesame plugin for Tobii eye trackers through Titta: calibration, recording, messages and gaze plotting.

Copyright (C) 2023-2026 Bob Rosbag, Diederick C. Niehorster & Marcus Nyström

About

This plugin makes Titta available in OpenSesame, for experiments with Tobii eye trackers.

Titta is a toolbox for using eye trackers from Tobii Pro AB with Python, specifically offering integration with PsychoPy. A Matlab version that integrates with PsychToolbox is also available from https://github.com/dcnieho/Titta. For a similar toolbox for SMI eye trackers, please see https://github.com/marcus-nystrom/SMITE.

Cite as: Niehorster, D.C., Andersson, R. & Nystrom, M. (2020). Titta: A toolbox for creating PsychToolbox and Psychopy experiments with Tobii eye trackers. Behavior Research Methods. doi: 10.3758/s13428-020-01358-8

Please mention: Bob Rosbag as creator of this plugin

For questions, bug reports or to check for updates on Titta, please visit https://github.com/marcus-nystrom/Titta. For the plugin, please visit https://github.com/dev-jam/opensesame-plugin-titta_eyetracking.

To minimize the risk of missing samples, Titta uses TittaPy, a C++ wrapper around the Tobii SDK, to pull samples made available from the eye tracker. TittaPy is installed together with Titta.

Items

  • Titta Init connects to the eye tracker and sets it up: the eye tracker model, dummy mode, calibration settings and an optional operator screen. Place it at the beginning of the experiment.
  • Titta Calibrate shows Titta's calibration screen.
  • Titta Start Recording starts the recording of the chosen data (gaze, time sync, eye images, notifications, external signal, positioning).
  • Titta Send Message sends a message to the recording, e.g. to mark an event.
  • Titta Plot Gaze shows the gaze position on the stimulus display and/or the operator display, until a response key is pressed or the timeout has passed.
  • Titta Stop Recording stops the recording.
  • Titta Save Data saves the recording as subject-<nr>.h5 in the folder of the log file (subject-<nr>_1.h5, ... when that file exists), and can also export every table in it to tsv files (subject-<nr>_<table>.tsv) and, with its own checkbox, the eye images to png files (subject-<nr>_eye_image/<k>.png, with the date and time added to the folder name when it exists; image <k> belongs to row <k> of subject-<nr>_eye_metadata.tsv; eye images are only in the file when they were recorded). A failed export is a warning in the log and doesn't end the experiment; the data stays in the .h5 file. In dummy mode no data is saved.

Requirements

  • OpenSesame 4.0 or 4.1 with the PsychoPy backend; the items are hidden for other backends.
  • Titta 2.2.2 or newer (installed with the plugin).
  • PsychoPy, which comes with OpenSesame (it is not installed with the plugin).
  • On Windows: preferably the OpenSesame installer for Python 3.10 (e.g. opensesame_4.1.22-py310-win64-1.exe). PsychoPy 2025.1.1, which OpenSesame 4.1.22 ships, supports Python 3.8 to 3.10, and on Windows it uses pyglet 1.4.11, whose text fails with Python 3.12 and later. With the Python 3.12 and 3.13 installers the init item works around that pyglet bug.

Installation

Install the plugin with pip, in the Python environment of OpenSesame:

pip install opensesame-plugin-titta-eyetracking

License

This plugin is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version (GPL-3.0-or-later).

The full license text is in the file COPYING, and is also available at https://www.gnu.org/licenses/gpl-3.0.html.

This plugin contains works of others.

Notes

  • One recording per experiment is working properly. Per trial recording (multiple starts and stops within an experiment) has not yet been tested.

Metadata

Release files for opensesame-plugin-titta-eyetracking 7.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for opensesame-plugin-titta-eyetracking 7.1.1
File Size Uploaded Provenance Actions
opensesame_plugin_titta_eyetracking-7.1.1.tar.gz 40.8 kB Without provenance Details for opensesame_plugin_titta_eyetracking-7.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for opensesame-plugin-titta-eyetracking 7.1.1
File Interpreter ABI Platform Actions
opensesame_plugin_titta_eyetracking-7.1.1-py3-none-any.whl Python 3 none any Details for opensesame_plugin_titta_eyetracking-7.1.1-py3-none-any.whl

Total release size: 113.6 kB

Release files / opensesame_plugin_titta_eyetracking-7.1.1.tar.gz

Download URL opensesame_plugin_titta_eyetracking-7.1.1.tar.gz
Size 40.8 kB
Tags Source
SHA-256 checksum
How to use checksums
55c8da369f7d34f50242358e01f350f5aeba5000862f15030aa9f1807d80f9bd
BLAKE2b-256 checksum
How to use checksums
dd4e8e945daae4e1bcb73ab3cc0f56ff644253f1a96d6ae7bca133cf8f7bb9bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.5

Release files / opensesame_plugin_titta_eyetracking-7.1.1-py3-none-any.whl

Download URL opensesame_plugin_titta_eyetracking-7.1.1-py3-none-any.whl
Size 72.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7548eabc52b67109ccbb2ed0b8c70d8945fa7deb8f836d4dc283ab9fc06e7791
BLAKE2b-256 checksum
How to use checksums
70443eab68b95d0d64a582255f6067814d81258261a6d95a4a0fc337ba03df56
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.5

Security for opensesame-plugin-titta-eyetracking 7.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

7.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page