script-fu - how to refer to the active image? - 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: script-fu - how to refer to the active image? (/Thread-script-fu-how-to-refer-to-the-active-image) Pages:
1
2
|
RE: script-fu - how to refer to the active image? - Ofnuts - 12-14-2022 If your first argument is an SF-IMAGE, it it automatically set to the current image (and I know if no other way to determine the "current image"), and if the second argument is an SF-DRAWABLE it is automatically set to the current active drawable (layer, but also mask or channel)(again, I know if no other way to determine the "current drawable", only the "current layer", but that may not be what the user wants), so best not call it whatever and instead use it.... |