Python script for controlling the OBSBOT Tiny 2 Lite. This script can retrieve and set camera states using OSC (Open Sound Control).
This project enables control of an OBSBOT camera via OSC messages using Python and the python-osc library. The script connects to and disconnects from the camera, requests device information, and retrieves gimbal position information.
- Python 3.6 or later
python-osclibrary: Required for sending and receiving OSC messages.- Activate OSC control in the OBSBOT Center application: Make sure OSC control is enabled in OBSBOT Center.
- Configure IP and Port: Set the same IP and port in both the OBSBOT Center application and this script to ensure correct communication. By default, the script uses
127.0.0.1and port16284. - Start OBSBOT Center: Always launch the OBSBOT Center application before running this script to ensure it receives commands.
Install the python-osc library via pip:
pip install python-osc