03-19-2021, 08:18 AM
- Your code doesn't define a run function but a open_add_flatten_export() one.
- I don't know how numeric arguments (your X, Y positions) are passed, you may receive them as string and have to explicitly convert them to int before using them.
- Not convinced that your copy/paste is going to work as it is, you are using plenty of calls that I have never used and they likely don't do what you think. The best way to copy a layer between the two images is to do a layer_copy = pdb.gimp_layer_new_from_drawable(fileImage.active_layer, image), and then do pdb.gimp_image_add_layer(image, layer_copy,1)