GIMP 脚本新手在这里。
我在 GIMP 2.6 的文档中看不到为什么这不起作用:
;Define the main function
(define (script-fu-rubber-stamp img drawable)
(gimp-image-undo-group-start img)
(plug-in-randomize-pick 1 img drawable 90 7 FALSE 10)
(plug-in-oilify 1 img drawable 5 0)
(gimp-image-undo-group-end img)
)
;Register the script w/ GIMP.
(script-fu-register
"script-fu-rubber-stamp" ;func name
"Rubber Stamp" ;menu label
"Image to rubberstamp" ;description
"Me" ;author
"Copyright 2011, Me" ;copyright notice
"Nov. 2011" ;date created
"" ;image type that the script works on
)
(script-fu-menu-register "script-fu-rubber-stamp" "<Image>/Script-Fu")
它出现在 GIMP 中,但是当我运行它时,它说:
Error: not enough arguments
但是,如果我查看 Script-FU 控制台,似乎是对的……除非我的方式错误不在函数调用中……