File: test3.scm

package info (click to toggle)
gimp 3.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 222,880 kB
  • sloc: ansic: 870,914; python: 10,965; lisp: 10,857; cpp: 7,355; perl: 4,536; sh: 1,753; xml: 972; yacc: 609; lex: 348; javascript: 150; makefile: 42
file content (31 lines) | stat: -rw-r--r-- 955 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
; !!! No shebang here

; Test a second .scm file in the same directory as a queried .scm.
; The second .scm file need not be executable.
; The second .scm file need not have a shebang.
; The gimp-script-fu-interpreter will nevertheless load the second .scm
; while it is querying the first, executable .scm in the dir.
; The plugin manager queries the first executable,
; and gimp-script-fu-interpreter loads (and returns defined names in)
; the second during the query of the first.

; Expect "Test>Test SF interpreter 3" in the menus
; Expect when chosen, message on GIMP message bar.

; plug-ins/test1/test1.scm is executable
; plug-ins/test1/test3.scm is NOT executable

(define (script-fu-test3)
  (gimp-message "Hello script-fu-test3")
)

(script-fu-register "script-fu-test3"
  "Test SF interpreter 3"
  "Just gives a message from Gimp"
  "lkk"
  "lkk"
  "2022"
  ""  ; all image types
)

(script-fu-menu-register "script-fu-test3" "<Image>/Test")