10-26-2020, 06:27 PM
Plenty of examples here: http://sourceforge.net/projects/gimp-too...s/scripts/
Typically, if the first two args in the args list of the register() are, in that order, 1) a PF_IMAGE and 2) a PF_DRAWABLE or a PF_LAYER, they are automatically set o the current image and layer when you call the script via the menu.
You have the Python_fu console to try things... Don't overlook the "Browse" button and the search bar in the window that it opens...
Typically, if the first two args in the args list of the register() are, in that order, 1) a PF_IMAGE and 2) a PF_DRAWABLE or a PF_LAYER, they are automatically set o the current image and layer when you call the script via the menu.
You have the Python_fu console to try things... Don't overlook the "Browse" button and the search bar in the window that it opens...