I create an image 500x500px, add a second layer to it, paint a black star from the brushes on it. Paint layer is active. I then go to the python console and enter following code:
>>> image = gimp.image_list()[0]
>>> layer = pdb.gimp_image_get_active_layer(image)
>>> schatten = pdb.script_fu_drop_shadow(image, layer, 4, 4, 15, "#000000", 80, FALSE)
This gives me a dropshadow. Now I want to move the shadow layer to the top by
>>> pdb.gimp_image_raise_item_to_top(image, schatten)
and get this error:
Traceback (most recent call last): File "", line 1, in RuntimeError: Die Prozedur »gimp-image-raise-item-to-top« wurden mit dem Wert »-1« für das Argument »item« (Nr. 2, Typ GimpItemID) aufgerufen. Dieser liegt außerhalb des Wertebereiches.
What am I doing wrong?