私はこの機能を持っていますdef enumerategrid(image, width, height, tcolor, theight, font, startfrom)
そしてそれをregister
編集してください:
gimpfu.register(
proc_name="enumerategrid_plugin-pdb",
blurb="Enumera rejillas en una imagen",
help="Enumera rejillas en una imagen",
author="Jorge Araya Navarro <elcorreo@deshackra.com>",
copyright="Servants of the Secret Fire Game Studios",
date="2015",
label="Enumerar rejilla...",
imagetypes="*",
params=[
(gimpfu.PF_INT32, "width", "ancho de la reja", 32),
(gimpfu.PF_INT32, "height", "altura de la reja", 32),
(gimpfu.PF_COLOR, "tcolor", "Color del texto", (1.0, 1.0, 1.0)),
(gimpfu.PF_SPINNER, "theight", "Tamaño del texto", 8, (1, 50, 1)),
(gimpfu.PF_FONT, "font", "Tipografía", "Monospace"),
(gimpfu.PF_SPINNER, "startfrom", "Contar desde", 0, (0, 3000, 1))
],
results=[],
function=enumerategrid,
menu="<Image>/Desarrollo de juegos/rejillas"
)
ただし、新しくインストールしたプラグインを実行したい場合、Gimp から次のエラーが発生します。
Gimp が現在のイメージをプラグインに渡していないように見えるため、7 つではなく 6 つの引数が渡されます。この問題を解決するにはどうすればよいですか?