Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
gimp-image-insert-layer: Item 'Background' (2) has already been added to an image
#3
I'm not fluent in script-fu (I code my scripts in Python, much easier/faster/powerful), but it looks like you are taking a reference to a layer and try to insert it in another image. This mean that this would be the same layer in both images...

You have to make an explicit copy of the layer, that you obtain with:
Code:
(gimp-layer-new-from-drawable yourSourceLayer  theImageWhereYouWantToInsertTheCopy)
and then insert that layer into your destination image:
Code:
(gimp-image-insert-layer theImageWhereYouWantToInsertTheCopy theLayerCopy parent position)
Reply


Messages In This Thread
RE: gimp-image-insert-layer: Item 'Background' (2) has already been added to an image - by Ofnuts - 01-13-2019, 12:27 PM

Forum Jump: