Skip to content
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

Blender 2.8 #4

Open
Hogarth-MMD opened this issue Jan 9, 2019 · 7 comments
Open

Blender 2.8 #4

Hogarth-MMD opened this issue Jan 9, 2019 · 7 comments

Comments

@Hogarth-MMD
Copy link
Owner

Please note that mmd_tools_helper is not updated for Blender 2.8. You need to use Blender 2.79b or earlier with mmd_tools_helper.

@lanning1990
Copy link

Is there a way to use this addon in blender 2.9 or above? 2.79 is too ancient, and it's really a pain to change between two versions.

@FlashlightET
Copy link

I literally HAVE to use this in 2.9 the file crashes in 2.79. Why in the world is it even incompatible? Blender literally just changed the interface and renderer. It's just python code.

@Hogarth-MMD
Copy link
Owner Author

powroupi/blender_mmd_tools#336

I just posted here, asking for information about how to update mmd_tools_helper for Blender 2.8+.

@UuuNyaa
Copy link

UuuNyaa commented Aug 21, 2021

I created a pull request #6

@7est
Copy link

7est commented Sep 2, 2021

I created a pull request #6

There're some Blender Python APIs have changed.
Such as:
bpy.context.view_layer.objects.active
bpy.context.preferences.view.use_international_fonts

@UuuNyaa
Copy link

UuuNyaa commented Sep 2, 2021

@7est You are right.
Someone needs to rewrite it using the following URL as a reference.
https://blenderartists.org/t/2-80-cheat-sheet-for-updating-add-ons/1148974

However, I didn't have that much motivation, so I worked up to the point where the add-on initialization was complete.

@wikid24
Copy link

wikid24 commented Jan 13, 2023

I've been working on it this week... slowly working through all the various scripts. Mostly same code works fine, with some slight changes here and there.

three things I found so far:

  1. wherever 'bpy.context.scene' is used, you can do a find & replace with 'bpy.context.view_layer' and it works.
  2. 'bpy.context.preferences.system.use_international_fonts = True' is not needed anymore
  3. wherever you see 'OCTAHEDRAL' (I can't remember which script I saw it in), replace the whole line with 'bpy.context.active_object.data.display_type = 'OCTAHEDRAL'

also a few other things here and there too. I'm mostly doing this to use this tool with FFXIV so I've forked it and am off doing a bunch of other stuff with the scripts. I'll submit a pull request back to this one once I'm finished.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants