Hogarth-MMD / mmd_tools_helper

Other
38 stars 20 forks source link

Blender 2.8 #4

Open Hogarth-MMD opened 5 years ago

Hogarth-MMD commented 5 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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

UuuNyaa commented 3 years ago

I created a pull request #6

7est commented 3 years ago

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 commented 3 years ago

@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 commented 1 year ago

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.