I have an XCD file with a nested layers structure:
image
front-layer
content-layer
content-layer-name-1
content-layer-name-2
content-layer-name-3
back-layer
I open the file with image = pdb.gimp_file_load(xcf_file, xcf_file) and can get front-layer, content-layer and back-layer as image.layers[0], image.layers[1] and image.layers[2]. But Gimp can't get sublayers in content-layer by list index.
I can use pdb.gimp_image_get_layer_by_name(image, 'content-layer-name-3'), but I don't known the layers' names.
I try pdb.gimp_item_get_children(image.layers[1]), but this method return INT32ARRAY with the item's list of children and I haven't found how retrieve the item by its id.
How can I get sublayers from a group layer with Python in Gimp (2.8)?