when trying the pygimp->sphere.py, I get an error message PDB calling error for procedure 'gimp-context-set-foreground': Argument 'foreground' (#1, type GimpRGB) out of bounds (validation changed '<not transformable to string>' I tracked this down to this: gimpmodule.c: pygimp_set_foreground(PyObject *self, PyObject* args) { GimpRGB colour; ... gimp_rgb_set_uchar(&colour, r, g, b); gimp_context_set_background(&colour); ... } it looks like the "colour" is not correctly initialized (the "a" member is not initialized) How about this patch? --- gimpmodule.c 2006-01-23 15:46:19.000000000 +0100 +++ gimpmodule.c 2006-04-27 14:24:24.000000000 +0200 @@ -808,7 +808,7 @@ g = CLAMP(g, 0, 255); b = CLAMP(b, 0, 255); - gimp_rgb_set_uchar(&colour, r, g, b); + gimp_rgba_set_uchar(&colour, r, g, b, 1); gimp_context_set_background(&colour); Py_INCREF(Py_None); @@ -831,7 +831,7 @@ g = CLAMP(g, 0, 255); b = CLAMP(b, 0, 255); - gimp_rgb_set_uchar(&colour, r, g, b); + gimp_rgba_set_uchar(&colour, r, g, b, 1); gimp_context_set_foreground(&colour); Py_INCREF(Py_None); -- lode _______________________________________________ Gimp-developer mailing list Gimp-developer@xxxxxxxxxxxxxxxxxxxxxx https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer