Gimp.Image.get_active_layer

@accepts(Gimp.Image)
@returns(Gimp.Layer)
def get_active_layer(self):
    # Python wrapper for gimp_image_get_active_layer()
  

Returns the specified image's active layer.

If there is an active layer, its ID will be returned, otherwise, -1. If a channel is currently active, then no layer will be. If a layer mask is active, then this will return the associated layer.

self

The image.

Returns