tweigel-dev / python-tuio

This repository is a python3 implementation of the TUIO protocol.
MIT License
3 stars 4 forks source link

Multiple Clients- Identifying Cursors Port/IP #13

Closed ghost closed 3 years ago

ghost commented 3 years ago

Hi,

Im trying to create a Script where the User can choose how many clients/touch panels exsist and how they are ordered in the real world. Is there a way to identify from which IP/Port a cursor comes from?

So i can do something like: If cursor from port = 3331: x = cursor.position x / 3 when i have 3 touch panels in a row and its the first one

tweigel-dev commented 3 years ago

Hay, thanks for your issue. I think your way to save the information which table is sending you the tuio package isn´t that simple, because the ip and port of the sender gets abstracted at the lower level dispatcher of the python-osc lib. Therefore it isn´t that simple to get ip and port.

maybe you can use the object profile or your own custom one to save an id or something else to identify the source of the bundle.

tweigel-dev commented 3 years ago

Did this resolve your issue ? @flbu90