-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pass through events to Blender UI #13
Comments
Yes absolitely! we have did this before in 2.79 and decided not to push into master until after the 2.8 upgrade I think. https://github.com/CGCookie/addon_common/tree/pass_through |
In this other repository, I have created a "should_pass_through" example (not complete!!) and made alterations to the current cooki_cutter.py https://github.com/patmo141/cookie_cutter_examples/blob/master/selective_pass_through.py However I had not thoroughly tested it and wasn't sure exactly where in the cookiecutter modal to insert it. So no merge from me yet. Would love to see what you did. |
Thanks for such a quick response! What I did is actually very similar to what you have done in cookiecutter.py with this change, but in a more hacky way. I will test if this change still works properly with action states and if there is no overlapping between events that should pass through. |
@skarnproject I just pushed my version of should_pass_through to the addon_common repo |
Here is a simple should_pass_through override
|
After a few more tests and examples I think we will be able to close this feature request |
I've been experimenting with creating UI with CookieCutter yesterday and I think I found a significant limitation in the way the whole library can be used. It seems to be impossible (just judging from event passing code) to pass any events to Blender UI when a CookieCutter-based operator is running modal.
I see where the limitation is coming from since it was built primarily for Retopoflow and similar tools implementing their own edit modes basically. But since the modal operators in Blender can be run alongside each other it makes it possible to make UI-only operators implementing no real actions (e.g. useful widgets for viewport or something like that, which could stay open when you keep on working using normal Blender features). So, if that functionality is not supported, I propose adding some functionality to have some control over "allowed" areas where events could pass through, making Blender UI functional.
I temporarily changed in the code in cookiecutter.py to pass through all events, and it seems to be not breaking any UI interaction, dragging or whatever. So I suppose, some functionality like that can be added in theory without too much pain?
The text was updated successfully, but these errors were encountered: