Skip to main content
Inspiring
April 18, 2024
Question

Wacom tablet blocks plugin dataflow

  • April 18, 2024
  • 0 replies
  • 153 views

Hello all,

The following setup is used:

  • Windows 10 Home (22H2)
  • Adobe Illustrator 2023, 27.8.1 (64-bit)
  • SDK 2023 (downloaded 14th of August 2023)
  • Wacom tablet: Intuos Pro Paper Edition (model PTH 660/K2-BX)
  • Wacom tablet driver-version: 6.4.5-5

 

Setting up wacom-device:

After installing the wacom tablet on my laptop, I activated this device in Illustrator by choosing "Edit-> Preferences-> Devices" and selecting the "Enable Wacom" checkbox.

After a restart of Illustrator, the pressure-sensitive stylus-pen was working fine in Illustrator.

 

Wanted functionality:

My plugin-tool uses an HTML/JS options-window for seting specific parameter values.

This toolOptions-extension is added via the function SDKPlugPlug::LoadExtension (SDKPlugPlug.cpp).

I can send new values to the HTML/JS options-window, using the function SDKPlugPlug::DispatchEvent.

Now I have implemented a functionality that changes a parameter value by dragging the cursor and sends the new value to the options-window during every call of the dragCursor callback-function.

So, when I use the mouse, hold the left mouse-button, and drag the mouse cursor, the parameter value is changed in the plugin and sent to the options-window continuously.

This works fine and the updated parameter value can be seen in the options-window immediately.

 

Problem:

But now I encountered a problem when I am using the wacom stylus pen + tablet instead of the mouse.

When I touch the tablet with the pen and drag the cursor, the parameter value is changed in the plugin as before, but the update of the value in the options-window is not visible any more or extremely slow.

The update only becomes visible when I lift the stylus-pen from the tablet. Immediately after lifting the pen from the tablet, all previously made value-changes are visible one after the other in the options-window.

It seems as if the wacom-device blocks the data-flow between plugin tool and options-window, or it blocks the event-queue used by SDKPlugPlug::DispatchEvent.

 

When I go to "Edit-> Preferences-> Devices", disable the "Enable Wacom" checkbox, and restart Illustrator, the problem is gone and the wacom-tablet works the same as the mouse.

But that is not an option, because with a disabled wacom-tablet, the pressure-sensitivity is not working any more in Illustrator.

 

If you have any idea what could cause this delayed/blocked dataflow between plugin and toolOptions-window while using an enabled wacom-tablet, please let me know.

Any help would be appreciated.

Thank you in advance

Fabian Taubitz

 

 

This topic has been closed for replies.