10-07-2018, 11:11 PM
(10-07-2018, 10:02 PM)Ofnuts Wrote: 1) which call(s) exactly? For bugs reports see https://gitlab.gnome.org/GNOME/gimp/issues
Code:
gimp-image-grid-set-background-color
and
Code:
gimp-image-grid-set-foreground-color
2) Pervasive problem. The command names are the names used in Script-fu. All this help is generated automatically from the registration information.
Since posting that, I've discovered it's pervasive, as if by design. If I understand you, the commands were originally hyphenated in Script-Fu, and when "copied" to PythonFu, they were converted to underscores, without converting the corresponding documentation. It helps me to understand that.
3) hit the Apply button in the help, and see what you get in the Python console window.
That helped, but not a lot. The result was:
Code:
pdb.gimp_image_grid_set_foreground_color(image, fgcolor)
What I believe would have been better is something like:
Code:
EXAMPLES:
After having set a variable (such as "theImage") with the name of the image to modify (such as with "theImage = gimp.image_list()[0]"):
pdb.gimp_image_grid_set_foreground_color(theImage, "#FF0000")
or
pdb.gimp_image_grid_set_foreground_color(theImage, "red")
Of course, others might disagree.
--
Kent