PyCympleOSC
Python receiver for Cymple Eye and Face tracker OSC data.
No dependencies, pure stdlib OSC decoder. Handles both address forms
/EyeLeftX and /avatar/parameters/EyeLeftX.
Install
pip install pycympleosc
Usage
from pycympleosc import CympleOSC
osc = CympleOSC(port=9000)
osc.start()
# polling
eye = osc.eye
if eye.available:
print(eye.left.x, eye.left.y, eye.right.x, eye.right.y)
print(osc.face["JawOpen"])
print(osc.head.yaw)
osc.stop()
Callbacks:
osc = CympleOSC()
@osc.on_eye
def handle_eye(eye):
print(eye.left, eye.right)
@osc.on_face
def handle_face(face):
print(face.jaw_open)
@osc.on_raw
def handle_raw(addr, args):
print(addr, args)
osc.start()
input("press enter to stop\n")
osc.stop()
Context manager:
with CympleOSC(port=9000) as osc:
while True:
print(osc.values)
Multi-port (if eye and face use different ports):
osc = CympleOSC(ports=[9000, 9001])
osc.start()
VRChat / Cymple
Set Cymple OSC target to 127.0.0.1:9000 (or the port you listen on).
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pycympleosc-0.1.3.tar.gz
(10.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pycympleosc-0.1.3.tar.gz.
File metadata
- Download URL: pycympleosc-0.1.3.tar.gz
- Upload date:
- Size: 10.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.15.0rc1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a55beccb09eb53c38aa8d36ee1a02127a99b16dda37368a2d9d8c7396d90d832
|
|
| MD5 |
d0c0e9c5727eed5961427041e3ff81dc
|
|
| BLAKE2b-256 |
9985f956188d79ea2480f8a187dadf289869a6ef58636dd6989989a088fadb61
|
File details
Details for the file pycympleosc-0.1.3-py3-none-any.whl.
File metadata
- Download URL: pycympleosc-0.1.3-py3-none-any.whl
- Upload date:
- Size: 7.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.15.0rc1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d00caa7cb0afbec4030a73108f26178a6bbb50854711ef73d5f85d5f54344d76
|
|
| MD5 |
aca924b68d5600d9579af60122ceee2e
|
|
| BLAKE2b-256 |
5b12a888f220f7f17d519d89f6b9da6dfd9a43db235b3ed3d7f6c1754c063b81
|