(08-07-2017, 07:00 PM)Kevin Wrote: gimp-edit-named-paste creates a floating selection that needs to be anchored:Thank you Kevin. But the problem persists: if I apply the script to another picture without restarting GIMP, it creates the new images (left and right...) from the old picture.
(08-07-2017, 09:33 PM)Ofnuts Wrote: Do not, ever, use clipboard functions internally in scripts!
When you do that:You can always copy the object directly, and, if necessary, cut off the excess.
- You pollute the system clipboard with stuff the user has no use for
- You run the risk that the clipboard if overwritten by some other action between your copy and your paste.
Use of the copy/paste clipboard functions is OK only as an explicit interface to the outside world (as in File>Create>From clipboard, or copying something to the clipboard because it will be used on some other program).
Okay. What is the alternative?