Skip to content

Instantly share code, notes, and snippets.

@brainstorm
Last active October 20, 2024 05:32
Show Gist options
  • Save brainstorm/ad3824f03fac986cd1e34d62ea49ea76 to your computer and use it in GitHub Desktop.
Save brainstorm/ad3824f03fac986cd1e34d62ea49ea76 to your computer and use it in GitHub Desktop.
GIMP opacity slideshow
#!/usr/bin/env python2
import time
from gimpfu import *
def opacity_slideshow(image, drawable):·
layer = image.layers[0]
for opacity_pct in range(0, 101, 3):
pdb.gimp_layer_set_opacity(layer, opacity_pct)
time.sleep(0.1)
gimp.displays_flush()
register(
"python_fu_opacity_slideshow",
"Opacity slideshow",
"Turn opacity to see through between layers progressively",
"brainstorm",
"Open source (GPLv3)",
"2024",
"<Image>/Filters/PCB Reversing/Opacity slideshow",
"*",
[],
[],
opacity_slideshow)
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment