04-23-2020, 08:19 PM
(gimp-floating-sel-anchor floating-sel) is a bit weird at that point, floating-sel would be the floating selection drawable returned by a paste operation initiated from the script, and I don't see any in your code. In other words, there is no value in floating-sel but there is no code likely to put an adequate value in it either.