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
908 stars 139 forks source link

Changes Godot importer to work with Godot version 3.0 #84

Closed muart closed 3 years ago

muart commented 6 years ago

Ran into some problems using the importer in 3.0 so here are some changes I made to get it working on the Godot 3.0 branch of the game engine.

  1. Dialog box was not expanding to fit widgets. I added containers but suspect this can be simplified to using minimum width settings on each widget and keeping all the original container structure.
  2. Sciipt changed to support the 3.0 way of getting to the Node data and to the new paths for the dialog box widgets.
  3. Support the new animation node track names. The transform attributes have changed.

Note: I see I forgot to remove some debug print statements. And I didn't test all paths through the code. But the importer does load a Blender json export and animate. (For my simple test scene).

ndee85 commented 6 years ago

Hi muart, I am planning to remove the godot exporter/importer as it is now. Its not functional anyway. Right now I am rewriting the dragonbones exporter. And since godot now has a dragonbones module, you can use the dragonbones exporter in the future.

Apart from that, I will see how godot 3.1 will look like, as it is dedicated to 2D rigs and meshes. Maybe a direct tscn exporter could then be implemented. We'll see.

muart commented 6 years ago

Hi Andreas, Sounds great. I'll take a look at dragonbones and keep a look out for when you have it working with Godot 3.x. In the interim, your excellent importer is working for me in 3.0 with this patch. Porting it was a good way for me to learn a little about Godot. Thank you for creating these tools!