ndee85 / coa_tools

COA Tools is a 2D Animation Suite for blender. It offers a 2D cutout animation workflow similar to programs like spine or spriter.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DragonBones export error - Blender 2.8X

SNKcoder opened this issue · comments

I'm getting this error when trying to export to DragonBones:

coatools-blender282

Using the latest coa_tools (2.8 branch) and Blender 2.82 (tried 2.81 and 2.80 with same error). To reproduce the error:

  • Export from GIMP
  • Create new file in Blender, import the sprite.
  • Add a basic armature
  • Select an export path, DragonBones and click export.

Tried in Windows and Linux with same result. The creature export seems to work correctly with the same files.

UPDATE: Tried with COA Tools 2.0 Release (15 Aug 2019) and works correctly. Tried other commits and the latest commit It's working for me is: a255d3d on 10 Sep 2019

That problem comes with the change made in the file texture_atlas_generator.py
These are the lines giving that error:

275 +bpy.data.collections["COA Export Collection"].hide_render = True
386 +bpy.data.collections["COA Export Collection"].hide_render = False

Solution 1:
Delete or comment those lines:
275 #bpy.data.collections["COA Export Collection"].hide_render = True
386 #bpy.data.collections["COA Export Collection"].hide_render = False

Solution 2:
If you don't want to touch the code and have something like this:
Screenshot_2020-04-07_21-16-31
Just rename the collection of your project to "COA Export Collection":
Screenshot_2020-04-07_21-14-12
And it exports correctly with latest commit.