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.
GNU General Public License v3.0
909 stars 140 forks source link

DragonBones export error - Blender 2.8X #153

Open ghost opened 4 years ago

ghost commented 4 years ago

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:

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

kreezii commented 4 years ago

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.