mahvin wrote:
It's always interesting, at least for me, to discover something totally new. I have never tried to use shapes path without an image open, so it never dawned on me that someone was attempting to do just that. So, after trying to use it without an image open, I now understand what the problem most likely is, (like you say). Now my curiosity wants to know why the author permitted this - or - if it's just a fluke of how the code permits something without it ever actually being intended by the author.
The problem stems from the menu command constraints used when the various functions are registered with GIMP's Procedural DataBase (PDB). The line after the copyright date in the 'script-fu-register' blocks should be "*" and not "". The asterisk indicates that
any type of image is acceptable, but that an image
is necessary. The empty quotes signify that no image is required; in which case the script will presumably create a new image, or perform operations that have nothing to do with images (for example, sort a palette or modify a brush).
The script's author should be forgiven, in my opinion, as this feature was not originally explained very well in the GIMP documentation (the original script is over six years old). I have made the same mistake in the past and no doubt there are scripts of mine being distributed which would exhibit the same misbehavior. Some more experienced GIMP users will recall the days when such "non-image" scripts were placed in the "Xtns" menu in the (now non-existent) Toolbox Menu, which made this distinction more clear, even if the availability of the commands were specified incorrectly within the script.