mmd_tools_helper icon indicating copy to clipboard operation
mmd_tools_helper copied to clipboard

Blender 2.8

Open Hogarth-MMD opened this issue 6 years ago • 7 comments

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.

Hogarth-MMD avatar Jan 09 '19 14:01 Hogarth-MMD

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.

lanning1990 avatar Feb 07 '21 23:02 lanning1990

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.

FlashlightET avatar Mar 28 '21 17:03 FlashlightET

https://github.com/powroupi/blender_mmd_tools/issues/336

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

Hogarth-MMD avatar Apr 14 '21 03:04 Hogarth-MMD

I created a pull request #6

UuuNyaa avatar Aug 21 '21 22:08 UuuNyaa

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

7est avatar Sep 02 '21 15:09 7est

@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.

UuuNyaa avatar Sep 02 '21 16:09 UuuNyaa

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.

wikid24 avatar Jan 13 '23 13:01 wikid24