I would still love some assistance on this. I am trying to call the procedure that exports layers from a batch file. I started by trying to call the procedure from the Python script console. The procedure browser suggests the syntax of the call is:
>>> pdb.plug_in_export_layers(image, file_extension, output_directory, layer_groups_as_folders, ignore_invisible, autocrop, use_image_size, file_ext_mode, strip_mode, square_bracketed_mode, crop_to_background, merge_layer_groups, empty_folders, ignore_layer_modes, overwrite_mode)
My command fails however:
>>> pdb.plug_in_export_layers("test.xcf", "png", "", 0, 0, 0, 0, 2, 2, 3, 0, 0, 0, 0, 0)
Traceback (most recent call last):
File "<input>", line 1, in <module>
TypeError: wrong parameter type
Not a particularly helpful error message. Can somebody give me a clue where I might be going wrong? (I also tried replacing all the zero parameters with None).