Gimp.Layer.get_by_id

@accepts(gint32)
@returns(Gimp.Layer)
def get_by_id(layer_id):
    # Python wrapper for gimp_layer_get_by_id()
  

Returns a Gimp.Layer representing layer_id. This function calls Gimp.Item.get_by_id and returns the item if it is layer or None otherwise.

Since 3.0

layer_id

The layer id.

Returns