Skip to main content

3DConnexion SpaceMouse support for napari

Project description

napari-spacemouse

License PyPI Python Version CI codecov

3DConnexion SpaceMouse support for napari

Expected to work for any product in the SpaceMouse line, but only tested on a SpaceNavigator. Currently only tested on macOS.

Usage

To install globally in napari:

import napari_spacemouse

# start listening to the spacemouse
napari_spacemouse.install()

# stop listening to the spacemouse
napari_spacemouse.uninstall()

Alternatively, there is SpaceMouse widget that can be used to toggle support for the mouse, and provide some configuration.

Important note for macOS

Currently, this plugin requires that the 3DconnexionHelper driver not be running, otherwise you will likely get an OSError when activating the plugin. To fix this:

  1. Open /Applications/Utilities/Activity Monitor/
  2. Search for 3DconnexionHelper
  3. If it's running, highlight it and quit it using the X button at the top right.

When done, you can start it again anytime at /Applications/3Dconnexion/3DconnexionHelper.

(Eventually this could be fixed, but we need to use the actual Connexion framework API instead of direct USB reads.)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

napari_spacemouse-0.1.0.tar.gz (15.5 kB view hashes)

Uploaded Source

Built Distribution

napari_spacemouse-0.1.0-py2.py3-none-any.whl (13.3 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page