Skip to content

Instantly share code, notes, and snippets.

@matshou
Last active May 21, 2020 14:28
Show Gist options
  • Save matshou/2ac3105363822140c429bf406e329287 to your computer and use it in GitHub Desktop.
Save matshou/2ac3105363822140c429bf406e329287 to your computer and use it in GitHub Desktop.
GimpFu Reference Page

Returns the list of images currently open.

>>> gimp.image_list()

Return the last opened image reference.

>>> pdb.gimp.image_list()[0]

Find a layer with a given name in an image.

>>> pdb.gimp_image_get_layer_by_name(image, name)

Returns the list of layers contained in the specified image.

>>> pdb.gimp_image_get_layers(image)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment