funexpected / flash-tools

Export flash project to Godot
MIT License
21 stars 4 forks source link

Symbols with shape tween will freeze animate #4

Open Michaelwhite34 opened 1 year ago

Michaelwhite34 commented 1 year ago

100kb fla exports very fast, however 2M fla will freeze animate and takes forever to export.

Michaelwhite34 commented 1 year ago

50.zip This is under 1Mb, still freezes animate.

Michaelwhite34 commented 1 year ago

It might be something can't be rasterized. I had some errors rasterizing certain things.

Michaelwhite34 commented 1 year ago

After a few times of trials and error, I find that the script can't rasterize Symbols with MorphCurves.

Michaelwhite34 commented 1 year ago

I find that symbols with shape tween will slow down the export a lot.(By a lot I mean forever). There are some other factors I haven't found out. Here is a temporary fix. 2.zip Run the python script in libarary folder, it outputs a json file that contains the symbols with shape tween, you need to insert frames or delete tween. And then export. There are other factors that could slow the export from 10 sec to 2 min, I need to do more tests.