Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Gimp Python script file load question
#8
  • 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)
Reply


Messages In This Thread
RE: Gimp Python script file load question - by Ofnuts - 03-19-2021, 08:18 AM

Forum Jump: