I'm using the Thinkpad X41 with ubuntu and Wacom drivers. Blender: trunk SVN rev. 30647 (today)
When trying to open a file/image/... the Items in the file list cannot be selected by just tiping on the file entry with the pen, like a normale LMB-click does it. This problem occurs in all tested files and also in the default blend file, but I don't know if it occurred in older blender versions.
It works with the normal mouse as expected and the tablet pen also works on all other buttons.
I can also draw selections in the file browser with my pen and if I draw a selection that only contains one entry, it is opened as if i clicked on it.
Because of all this working, I think it is just a small problem and can be fixed easily.
Description
Event Timeline
Hi,
I think using SELECTMOUSE and not LEFTMOUSE will help here (for the FILE_OT_select), Andrea what you think ? I will test on linux and let you know if this fix the problem.
- Diego
Hi again,
I connect the Wacom to my PC and work fine here, the file browser work fine, also open/load files (don't have to change anything).
What is the model of your Wacom ?
- Diego
Hi,
My Wacom is a serial one, the normal one that was built into the Lenovo Thinkpad X41 Tablet. Sorry that I dont find more details, but in the system logs it just appears as Serial Wacom Tablet. I use it on Ubuntu 10.4 with xserver-xorg-input-wacom version 1:0.10.5-0ubuntu4.
Some debug output from blender, it might help:
When I select a file in debug mode by drawing a rectangle around one item:
pass on evt 1 val 1
handle evt 1 win 18 op VIEW2D_OT_scroller_activate
pass on evt 20482 val 4
handle evt 20482 win 18 op FILE_OT_select_border
pass on evt 1 val 2
bpy.ops.file.select_border(gesture_mode=3, xmin=107, xmax=125, ymin=556, ymax=558)
pass on evt 260 val 0
When I click on it with the pen:
pass on evt 1 val 1
handle evt 1 win 18 op VIEW2D_OT_scroller_activate
pass on evt 1 val 2
And a normal click wit the mouse:
pass on evt 1 val 1
handle evt 1 win 18 op VIEW2D_OT_scroller_activate
pass on evt 1 val 2
handle evt 1 win 18 op FILE_OT_select
bpy.ops.file.select(extend=False, fill=False)
Michael
I think I got the problem, because I had simular problems in an other program:
my Stylus is an older model and when I press the pen, the cursor moves down a little bit, the click event is fired and it moves up. Most of the time, you cannot see this movement because it is so fast that the mouse pointer does not move, but blender seams to see this as a movement. Because the movement is too small, border select is not started but the click event seems not to be executed. Is there a method to change the threshold? I tried setting the wacom-option suppress to maximum, but it did not help.
When I deactivate the file.select_border keymap for the mouse, I still cannot select files. But if I hold the pen right and try multiple times, I can sometimes select the files.
I hope you can find a solution. If there is anything else I can try (also changing the source, I am not afraid of that and can some C), I'd be happy to help.
Michael
Hi Michael,
I think we need know what class of XEvent generate this wacom in that particular moment, I will check the code on the ghost library and let you know what you have to change.
- Diego
You can capture XEvents using "xev" tool, it takes a windowid argument. The 'xwininfo' tool can fetch you the Blender's windowid. Here's how you can use them together:
xev -id `xwininfo | grep "Window id" | cut -d " " -f4`
Launch blender as usual, and from another terminal emulator window run the above command, your mouse/pen pointer should change to a cross-hair. Now point at the blender window and click, henceforth all XEvents would be printed in the terminal window.
Hope that helps
Closing duplicate
http://projects.blender.org/tracker/index.php?func=detail&aid=24467&group_id=9&atid=498
This contains some useful info too.
This is a current todo item. Bassam also uses tablets for everything, and mentioned cases where clicks get registered as "tweaks" in Blender.
It will become a good user preset, maybe tied to keymap saving too, so users can define useful maps for pen usage.
I will work with Bassam to get this solved and tested well!
http://wiki.blender.org/index.php/Dev:2.5/Source/Development/Todo/UserInterface#Tablet_Support
I have this problem...
(Campbel closed a duplicate bug of mine!)
After further testing it works fine using a wacom bamboo fun medium but is an issue with my intuos4 large...
I wonder if it's a pressure thing (512 levels vs 2048) or a precision thing with the much larger and more accurate area of the intuos being more likely to be detected as tweak rather than click....