coa_tools
coa_tools copied to clipboard
GIMP Multiple frames in a group folder combined in blender
I observed that multiple frames in one group folder from GIMP are combined as a single image when I imported them into blender
i vote this +1 @blesssedone is right, i did same problem..
@ndee85 other FEEDBACK: but coatools will errors when group layer (inside is empty)
see error:
TypeError: can't pickle GroupLayer objects
raceback (most recent call last):
File "/usr/lib64/gimp/2.0/python/gimpfu.py", line 736, in response
dialog.res = run_script(params)
File "/usr/lib64/gimp/2.0/python/gimpfu.py", line 360, in run_script
_set_defaults(proc_name, params)
File "/usr/lib64/gimp/2.0/python/gimpfu.py", line 350, in _set_defaults
gimpshelf.shelf[key] = defaults
File "/usr/lib64/gimp/2.0/python/gimpshelf.py", line 84, in __setitem__
p.dump(value)
File "/usr/lib64/python2.7/copy_reg.py", line 70, in _reduce_ex
raise TypeError, "can't pickle %s objects" % base.__name__
TypeError: can't pickle GroupLayer objects
this group layer of GIMP is true 'comfortable' thank you
I already get the TypeError: can't pickle GroupLayer objects
error. I found a workaround:
From Gimp:
- Export your file to an OpenRaster file (
.ora
) - Open this
.ora
file - Export to COATools.
In my case the error no longer appears.
To avoid layer groups to be combined in a single sprite, I edited the gimp exporter so that any layer (in a group or not) are exported in its own sprite.
Here is the edited Gimp addon:
https://github.com/alcalyn/coa_tools/blob/gimp-export-split-all-layers/GIMP/coatools_exporter.py
(Here is the diff changes: https://github.com/ndee85/coa_tools/compare/master...alcalyn:gimp-export-split-all-layers?expand=1#diff-22e550a2702d8d406e9f9bf208e0d1ce)