Why is this script-fu not working?

(define (script-fu-create-camo image colA colB))

(script-fu-register
    "script-fu-create-camo"
    "Camoflauge"
    "Creates a camoflauge pattern on an image"
    "Jeffrey Aylesworth <jeffrey@aylesworth"
    "Copyright (c) 2009 Jeffrey Aylesworth"
    "2009/12/31"
    ""

    SF-IMAGE "Image" 0
    SF-COLOR "Colour 1" '(50 0 0)
    SF-COLOR "Colour 2" '(0 50 0))

(script-fu-menu-register "script-fu-create-camo" "<Image>/Filters/Render")

I am using Gimp 2.6 on Mac OS 10.6. The script is saved as ~/gimp-2.6/scripts/camoflauge.scm, the script does not create a new item in the menu. What am I doing wrong?

+3
source share
1 answer

I created some scripts -fu scripts that I used on my mac. I always put them in:

/Applications/Gimp.app/Content/Resources/share/Gimp/2.0/scripts/

And in my case I would add an "<Image>/Filters/Render"underscore, so_"<Image>/Filters/Render"

Hope this helps, it's been a while since I messed around with this.

+2
source

Source: https://habr.com/ru/post/1727017/


All Articles