Python Wacom Interface
Solution 1:
I think, in wintab you can get the raw coordinates. At least in Python wrapper for wintab you can access them:
cgkit.wintab.Packet.x
In absolute mode, contains the scaled cursor location along the x axis. In relative mode, contains the scaled change in cursor position.
cgkit.wintab.Packet.y
In absolute mode, contains the scaled cursor location along the y axis. In relative mode, contains the scaled change in cursor position.
I'm investigating for myself if there is an cross-platform api for tablets, but if you need windows-only solution that should work.
Solution 2:
Although its not related to the question (other than Wacom) some readers might find this useful:
https://boutiqueretouching.com/fix-wacom-lag/
Advice: Attach your pen to your tablet with string (Or always store your wacom pen in its dock)... This stops your family mistaking it for a dried up felt tip, and throwing it in the bin. (Did this myself once when tidying up - agh!)
Solution 3:
As mentioned before you have to use Python Computer Graphics Kit cgkit. If you don't want to build it from source and don't mind using older version of Python you can use the binaries.
The version tested in Windows works with Python 3.2 32-bit. Download and install Python from here Then download and install Python Computer Graphics Kit from here
Test if Wintab driver is available by running the following 2 lines
from cgkit import wintab
print(wintab.available())
If you get False then you have to install the drivers. You can download the drivers from here
Restart the computer after installing the drivers and try the 2 lines again you should get True.
Now to retrieve stylus data refer to Python wrapper for wintab
Post a Comment for "Python Wacom Interface"