NangiDev / Blender6DofMouseAddon

Addon for the 6 DOF mouse I'm building

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

πŸ–±οΈ Blender6DofMouseAddon 🐭

Introduction πŸš€

Blender add-on for the 6 DOF CAD mouse I'm building

It reads serial data from the mouse and transform it to translation and rotation data inside Blender to move stuff inside the viewport.

Dependencies πŸ“¦

  • Blender 2.8 or greater
  • Pyserial 3.2 or greater

Install PySerial for Blender

  • Download the PySerial source code. The file you're looking for ends with .tar.gz
  • Unzipp what you've downloaded
  • Copy the serial folder, it is under PySerial\pyserial-3.2.1\serial (the version can change)
  • Paste the folder in your blender modules folder, 2.83\scripts\modules, and now you should be able to use import serial

Actuall Blender Add-on 🧩

This is the actuall add-on to install

UI Description πŸ“œ

  • Connect button - Connect to your mouse
  • Port dropdown - The serial port the mouse is connected to
  • Speed variable - A multiplier for adjusting mouse speed inside Blender
  • Threshold variable - To remove drifting in joysticks
  • Grayed out axises - Normalized (-1 to 1) real-time data being read from the joystics.

Screenshot πŸ“·

Addon GUI

Tests

Some small Python program I wrote to be able to iterate faster

This is a simple python program that reads from serial. Useful for testing and you don't want to do it through Blender add-on

This is a simple python program that writes to serial. Useful for testing and you don't have you Arduino hardware

About

Addon for the 6 DOF mouse I'm building


Languages

Language:Python 100.0%