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.2.tar.gz
(9.3 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.2.tar.gz.
File metadata
- Download URL: pycympleosc-0.1.2.tar.gz
- Upload date:
- Size: 9.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.15.0rc1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7d9caf8dddb602b4f66d44d52e70b19533fff08f86bd1e0ef908fa2e301ba1db
|
|
| MD5 |
55bb01287a1859470cb429a61aefe450
|
|
| BLAKE2b-256 |
d7d8818c173639e37900b1cda9afc30646b594169245016ca165b9a2e6f2f545
|
File details
Details for the file pycympleosc-0.1.2-py3-none-any.whl.
File metadata
- Download URL: pycympleosc-0.1.2-py3-none-any.whl
- Upload date:
- Size: 7.3 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 |
d7ce9268c020995d490b154c094515130e98a2434481fd46e0e5193fc10113c3
|
|
| MD5 |
fe8a386865f0c4d2ebf4fced549f46ef
|
|
| BLAKE2b-256 |
bcf860e084d4caec602d47e5994a307763d819641c3fa801a19ad157850bc1c3
|