I've tried all the recommended changes and now nothing seems to work.
My plug-in no longer shows up in any of the menus and I can't seem to restore the old menu. Regenerating the pluginrc doesn't help either. Here is plug-in as it stands right now. Am I missing something else?
from gimpfu import *
def test_image(size, color) :
# gimp.context_push()
img = gimp.Image(size, size, RGB)
layer = gimp.Layer(img, "Uni Layer", size, size,
RGB_IMAGE, 100, NORMAL_MODE)
img.disable_undo()
img.add_layer(img, layer, 0)
gimp.set_background(color)
pdb.gimp_edit_fill(layer, BACKGROUND_FILL)
pdb.gimp_display_new(img)
pdb.gimp_image_undo_enable(img)
# disp = gimp.Display(img)
# gimp.context_pop()
register(
"test_image",
"This is a test",
"This is a test",
"Name Test",
"Name Test",
"Date Test",
"Test Image",
"",
[
(PF_INT, "size", "Size", 100),
(PF_COLOR, "color", "Image", (255, 127, 0)),
],
[],
test_image,
menu="<image>/MyScripts"
)
main()
Notice I removed a slash here, menu="<image>/MyScripts", thinking that was the problem, it wasn't. Here is the entry in pluginrc,
(plug-in-def "C:\\Documents and Settings\\Merlin\\.gimp-2.8\\plug-ins\\uni_img_py.py" 1363384740
(proc-def "python-fu-test_image" 1
"This is a test"
"This is a test"
"Name Test"
"Name Test"
"Date Test"
"Test Image"
0
(icon stock-id -1 "")
""
3 0
(proc-arg 0 "run-mode" "The run mode { RUN-INTERACTIVE (0), RUN-NONINTERACTIVE (1) }")
(proc-arg 0 "size" "Size")
(proc-arg 10 "color" "Image")))
There is no menu entry.