diegogarciahuerta / tk-blender

:milk_glass: Shotgun Toolkit Engine for Blender: https://www.blender.org/
Other
43 stars 31 forks source link

Bqt for better PySide support #5

Open friedererdmann opened 3 years ago

friedererdmann commented 3 years ago

Hey Diego!

Great work on the integration :) I noticed your PySide2 is using the method of creating a new PySide operator! I don't know if this would work for you, but there's also the more complete integration of PySide2 with Blender available here: https://github.com/techartorg/bqt - which might make it easier to communicate between the Qt UI elements and Blender and keep them correctly on top of your UI.

diegogarciahuerta commented 3 years ago

Hi @friedererdmann ,

Thanks for your words, I hope people with more Blender dev experience than me can contribute to make it more robust, specially when it comes to creating a more native solution for the menus.

Regarding your suggestion, if you read the README of this repo you will see that I based my PySide2 integration on quite a few solutions out there, one of them bqt itself.

Bqt actually uses an operator too to achieve similar results. https://github.com/techartorg/bqt/blob/8437e061b74f1a692ef16b2174144cf5e25120f2/bqt/__init__.py#L21

Cheers,