coa_tools icon indicating copy to clipboard operation
coa_tools copied to clipboard

GIMP Multiple frames in a group folder combined in blender

Open blesssedone opened this issue 6 years ago • 3 comments

I observed that multiple frames in one group folder from GIMP are combined as a single image when I imported them into blender

blesssedone avatar Mar 21 '18 06:03 blesssedone

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

manuelsongokuh avatar Mar 25 '18 21:03 manuelsongokuh

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.

alcalyn avatar Jan 02 '19 14:01 alcalyn

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)

alcalyn avatar Jan 04 '19 20:01 alcalyn