skybrush-io / studio-blender

Skybrush Studio for Blender - a Blender addon for designing and validating drone shows
https://skybrush.io
GNU General Public License v3.0
43 stars 30 forks source link

Blender 4.0 #9

Closed thealetree closed 9 months ago

thealetree commented 9 months ago

The HUD for speed and min distance no longer displayed in Blender 4.0, though the rest of the addon seems to be functioning.

ntamas commented 9 months ago

Thanks for the feedback, we'll look into this shortly!

thealetree commented 9 months ago

Thanks!!

I was using V2.7.

I just downloaded the latest version adn received this error in Blender (not sure it is user error or if this will actually help):

Traceback (most recent call last): File "/Applications/Blender.app/Contents/Resources/4.0/scripts/modules/addon_utils.py", line 364, in enable mod = importlib.import_module(module_name) File "/Applications/Blender.app/Contents/Resources/4.0/python/lib/python3.10/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1050, in _gcd_import File "", line 1027, in _find_and_load File "", line 1006, in _find_and_load_unlocked File "", line 688, in _load_unlocked File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed File "/Users/vansanders/Library/Application Support/Blender/4.0/scripts/addons/ui_skybrush_studio.py", line 44, in from sbstudio.plugin.lists import ( ImportError: cannot import name 'SKYBRUSH_UL_scheduleoverridelist' from 'sbstudio.plugin.lists' (/Users/vansanders/Library/Application Support/Blender/4.0/scripts/addons/vendor/skybrush/sbstudio/plugin/lists/init.py)

ntamas commented 9 months ago

Most likely cause for the original bug report is this.

As for the error message in your second comment, this seems to be an incorrect installation of the plugin. Most likely installing a new version over an older one does not work smoothly. Try removing our add-on completely and then re-installing it from the ZIP downloaded from our homepage.

ntamas commented 9 months ago

No, actually, there's more to the story of the original bug report:

Traceback (most recent call last):
  File "/Users/tamas/Library/Application Support/Blender/4.0/scripts/addons/vendor/skybrush/sbstudio/plugin/overlays/safety_check.py", line 100, in draw_2d
    blf.size(font_id, int(11 * ui_scale), 72)
TypeError: blf.size() takes exactly 2 arguments (3 given)

Caused by this.

thealetree commented 9 months ago

Most likely cause for the original bug report is this.

As for the error message in your second comment, this seems to be an incorrect installation of the plugin. Most likely installing a new version over an older one does not work smoothly. Try removing our add-on completely and then re-installing it from the ZIP downloaded from our homepage.

Thanks, I now have the updated version installed successfully.

I'll continue to use Blender 3.6.5LTS for now though. Not sure how to resolve the issue with the links provided (does sky brush code need to be updated to accommodate for the deprecation?).

Thanks very much for the super speedy reply btw!

ntamas commented 9 months ago

HUD is now fixed in fe1b9b0. I'll wait a few days to see if there are more reports about issues with Blender 4, and if there aren't any, I'll release a new patch version.

Until then, you can take a look at the changes in fe1b9b0 and apply these in the source code of the plugin on your machine.

ntamas commented 9 months ago

Version 3.0.2 of the plugin is now released and it should support Blender 4 out of the box. Let us know if something is not working correctly.

thealetree commented 9 months ago

Hey thanks so much! Seems like it's working great for me 👍

On Mon, Nov 20, 2023 at 2:42 AM Tamás Nepusz @.***> wrote:

Version 3.0.2 of the plugin is now released and it should support Blender 4 out of the box. Let us know if something is not working correctly.

— Reply to this email directly, view it on GitHub https://github.com/skybrush-io/studio-blender/issues/9#issuecomment-1818799799, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABDGVMA4LMAHPBYEZUD2HCTYFMX25AVCNFSM6AAAAAA7NCGHAKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMJYG44TSNZZHE . You are receiving this because you authored the thread.Message ID: @.***>