cval

cval

About Me

Expertise
Not Specified
Location
Not Specified
Website

Connect

Recent Forum Posts

Python Viewer State and Hotkeys Dec. 9, 2020, 9:10 a.m.

All right, thanks for the answer mabelzile!

Python Viewer State and Hotkeys Dec. 8, 2020, 11:21 p.m.

Greetings everybody

I am wondering if it is possible to disable hotkeys while in a custom python viewer state. Here is my problem, I am trying to use the “t”, “r” and “e” onKeyEvent in my object level python viewer state, but the viewport hotkeys seem to catch them first and it switches to the translation, rotation or scaling tools. I tried with the onKeyTransitEvent and it does catch the “key down” event and I then return True to consume the key transition, but the viewport still switches to the corresponding transformation tool.

Would there be a way to use those keys or do hotkeys have priority over viewer states key events?

Thanks in advance for you help

Python Viewer State GeometryDrawable in OBJ context Oct. 29, 2020, 9:38 p.m.

Merci @mabelzile! I tested with latest daily build and it works It does exactly what I need Thank you so much!