Skip to content

Instantly share code, notes, and snippets.

@cdrini
Last active October 2, 2021 14:47
Show Gist options
  • Save cdrini/865be26b9f2895015544912765bfd0a8 to your computer and use it in GitHub Desktop.
Save cdrini/865be26b9f2895015544912765bfd0a8 to your computer and use it in GitHub Desktop.
GIMP Python-Fu Examples

Turn on/off all layers

img = gimp.image_list()[0]  # Not sure if this gets the last image or the active image
for layer in img.layers:
    layer.visible = False
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment