エラーコンソールに警告を表示するだけの python-fu スクリプトを作成しようとしています。これと同じことが schema-fu でも問題なく動作しています。
しかし、python-fuのメニューには表示されません。
プラグイン用に gimp 内で構成されたディレクトリにスクリプトがあります: /Users/myusername/Library/Application Support/GIMP/2.10/plug-ins
ファイルの名前: python-fu-hello-warning.py
これを MacOS Catalina バージョン 10.15.3 で実行します。GIMP のバージョンは 2.10.14 です。
これはコードです:
#!/usr/bin/env python
# Hello Warning
from gimpfu import *
def hello_warning():
pdb.gimp_message("hello warning")
register(
"python_fu_hello_warning",
"Hello warning",
"Hello warning TO ERROR CONSOLE",
"Walter Moore",
"Walter Moore",
"2020",
"Hello warning (Py)...",
"",
[],
[],
hello_warning,
menu="<Image>/File/HelloWarning"
)
main()
私は何を間違っていますか?