【发布时间】:2020-02-03 15:17:14
【问题描述】:
与 Neo 不同,我不知道 python-fu。我也是 GIMP 的新手,无法将消息发送到控制台:
def test(image, drawable):
pdb.gimp_message("This is displayed as a message")
pdb.gimp_progress_set_text("This message is displayed in the status bar")
我刚刚收到消息:
!测试警告
这显示为一条消息
这两个命令都需要字符串,所以我不确定我是否在某个地方漏掉了一个技巧。
【问题讨论】:
-
您标记了
script-fu,但您的代码似乎是用 Python 编写的? script-fu 是 Gip 中使用的另一种脚本语言(一种 Lisp/Scheme 衍生...)