Blender Custom Modal Timer Operator for Sensel Morph's Raw Data Output
License: GPL v3
This is a boiler-plate setup for dealing with Sensel Morph's Raw data output inside of Blender. It is a rough implementation.
This was tested on MacOS. Other operating systems may require some adjustment. There are some bugs with multiple usage inside one session of Blender. Use at your own risk. Save often.
#To Install:
- Install/build Blender
- Install the Sensel API library
- Copy the included sensel directory (the sensel-lib-python directory with an init.py) to Blender.app/Contents/Resources/2.90/scripts/sensel
- Make sure Sensel Morph is connected to the computer.
- Open a terminal. CD to Blender.app/Contents/MacOS. Open Blender from the terminal.
- Go to the scripting section.
- Run the script.
- Touch Sensel Morph.
- Notice change in colors in the viewport graphics (data is also printed in terminal).
- To exit, press the upper left hand corner of the Morph (as close to 0x0 as possible).
- Confirm that Sensel Morph no longer drives viewport coloring and is not outputting data in terminal.
- You can re-run the script.
- IF SENSEL MORPH IS NOT DISCONNECTED, SCRIPT WILL CAUSE HANG-UP AND BLENDER MUST BE FORCE QUIT.
Partially inspired by the Blendsel project https://github.com/pmauldin/HackThePlanet