![]() |
Unbound variable floating-sel Help! - Printable Version +- Gimp-Forum.net (https://www.gimp-forum.net) +-- Forum: GIMP (https://www.gimp-forum.net/Forum-GIMP) +--- Forum: Extending the GIMP (https://www.gimp-forum.net/Forum-Extending-the-GIMP) +--- Thread: Unbound variable floating-sel Help! (/Thread-Unbound-variable-floating-sel-Help) |
Unbound variable floating-sel Help! - Pocholo - 04-23-2020 Hi fellow GIMP users. I posted the same question @gimpchat.com. I been having an error on the line (gimp-floating-sel-anchor floating-sel) "eval: unbound variable: floating-sel". what should I do. Please explain how can I avoid this error when I write other scripts. Thank you in advanced. Code: (define (script-fu-create-heart) RE: Unbound variable floating-sel Help! - JimmyMarco - 04-23-2020 Hello, ![]() I suppose "floating-sel" was in the copy/paste from console. Replace "floating-sel" by the name of layer you are using in this part of script... probably "theheart". Have fun. ![]() @+++ RE: Unbound variable floating-sel Help! - Ofnuts - 04-23-2020 (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. RE: Unbound variable floating-sel Help! - Pocholo - 04-23-2020 Thank ofnuts for the explanation. I took a second look and I found what I did wrong. When I created a "selection" on the image and I filled the selection, I forgot to "Select> None". Somehow when I rotated the image without getting rid of the selection, it created a floating selection that I could not got rid off. I manage to do (gimp-selection-none img) and then rotate the image and that worked. |