YABEE icon indicating copy to clipboard operation
YABEE copied to clipboard

Needs updating to work in Blender 2.8

Open BrettWitty opened this issue 6 years ago • 6 comments

I know that this plugin is written for Blender 2.5-2.7, but it may be worthwhile preparing for the forthcoming Blender 2.8.

Guidelines on things to be changed: https://wiki.blender.org/wiki/Reference/Release_Notes/2.80/Python_API/Addons

I attempted to make the changes myself, but I can't get it to appear in the export menu.

BrettWitty avatar Jan 22 '19 10:01 BrettWitty

I was also trying to get this script to work in Blender 2.8.

I got the menu option to appear by changing the following:

bl_info version to (2, 80, 0) INFO_MT_file_export is now TOPBAR_MT_file_export removing bpy.utils.register_module / bpy.utils.unregister_module registering a bunch of classes instead

Unfortunately now I'm getting:

location: <unknown location>:-1
Traceback (most recent call last):
  File "/home/scott/.config/blender/2.80/scripts/addons/YABEE-master/__init__.py", line 434, in draw
    context.scene.yabee_settings.draw(self.layout)
  File "/home/scott/.config/blender/2.80/scripts/addons/YABEE-master/__init__.py", line 171, in draw
    layout.row().label('Animation:')
TypeError: UILayout.label(): required parameter "text" to be a keyword argument!

location: <unknown location>:-1

location: <unknown location>:-1
Traceback (most recent call last):
  File "/home/scott/.config/blender/2.80/scripts/addons/YABEE-master/__init__.py", line 410, in execute
    sett.opt_force_export_vertex_colors,)
  File "/home/scott/.config/blender/2.80/scripts/addons/YABEE-master/yabee_libs/egg_writer.py", line 1629, in write_out
    for tex in obj.texture_slots.values():
AttributeError: 'Material' object has no attribute 'texture_slots'

scott-- avatar Feb 28 '19 00:02 scott--

Hey just thought I would give this a bump as Blender 2.8 stable comes out in July.

HeadClot avatar Jun 26 '19 21:06 HeadClot

An article with a list of changes for 2.8 and some ideas on maintaining 2.7x and 2.8 support in the same code base can be found here

Moguri avatar Jul 29 '19 16:07 Moguri

Hi guys, do you have any plans to this?

david-ragazzi avatar Aug 21 '19 15:08 david-ragazzi

I managed to get it work in Blender 2.80 (some features are missing yet) https://github.com/kergalym/YABEE

kergalym avatar Dec 03 '19 01:12 kergalym

Thank you @kergalym

HeadClot avatar Dec 03 '19 03:12 HeadClot