Advertisement
metalx1000

GIMP Script/Plugin Example

Mar 25th, 2023
674
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. (define (fbk-effect image drawable)
  2. (let* (
  3. (img-height (car (gimp-image-height image)))
  4. (img-width (car (gimp-image-width image)))
  5. (new-layer)
  6. )
  7. (gimp-image-undo-group-start image)
  8. ;(gimp-convert-grayscale image)
  9. (gimp-desaturate drawable)
  10. (plug-in-neon 0 image drawable 5 5)
  11.  
  12. (set! new-layer (car (gimp-layer-new image img-width img-height RGBA-IMAGE "layer" 100 LAYER-MODE-HARDLIGHT)))
  13. (gimp-image-insert-layer image new-layer 0 0)
  14. (gimp-selection-flood image)
  15. (gimp-drawable-edit-fill new-layer FILL-FOREGROUND)
  16.  
  17. (gimp-displays-flush)
  18. (gimp-image-undo-group-end image)
  19. )
  20. )
  21.  
  22. (script-fu-register
  23. "fbk-effect" ;function name
  24. "Test Effect with Layers" ;menu label
  25. "Add some effects and layers." ;description
  26. "Kris Occhipinti" ;author
  27. "Copyright 2023,Kris Occhipinti;\
  28. GPLv3" ;copyright notice
  29. "March 25, 2023" ;date created
  30. "" ;image type that the script works on
  31. SF-IMAGE "Image" 0
  32. SF-DRAWABLE "Drawable" 0
  33. )
  34. (script-fu-menu-register "fbk-effect" "<Image>/FBK")
  35.  
  36.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement