我在哪里可以在 GIMP 中选择我的个人插件? [英] Where can I select my personal plugins in GIMP?

查看:25
本文介绍了我在哪里可以在 GIMP 中选择我的个人插件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在尝试运行这些示例脚本(特别是helloworld.pypytemplate.py) 以在 GIMP 中使用 python 代码.我对 pytemplate.py 特别感兴趣,它旨在展示如何对现有图像执行某些操作(希望是具有焦点的图像的当前状态)

I have been trying to run these sample scripts (specially helloworld.py and pytemplate.py) to get the hang on using python code in GIMP. I'm specially interested in pytemplate.py which is intended to show how to do something over an existing image (hopefully, the current state of the image which has the focus)

据我所知,我必须将它们放在 ~/.gimp-2.8/plug-ins/(在我的 GIMP 个人文件夹中)并授予它们运行权限(chmod+x somescript.py).

As far as I know, I have to place them in ~/.gimp-2.8/plug-ins/ (in my GIMP's personal folder) and give them run permissions (chmod +x somescript.py).

gimpfu.register() 函数有一个 kwarg,它似乎控制触发选项"出现的位置.它看起来像:

The gimpfu.register() function has a kwarg that seems to control where the "trigger option" would appear. It looks like:

menu="<Image>/Filters/Enhance"

然而,我的 GIMP 有西班牙语菜单,不知何故这让我担心它会干扰渲染触发器"......无论如何,我重新启动了 GIMP 并尝试从我的 GIMP 主窗口的菜单路径菜单并没有找到任何东西.

However, my GIMP has the menus in Spanish language, somehow this makes me being afraid that it can interfere in rendering the "trigger"... Anyway, I restarted GIMP and tried to follow the menu path from my GIMP's main window's menu and didn't find anything at all.

重点是:我还需要做什么才能运行脚本并查看会发生什么?我真的可以使用 menu kwarg 控制运行我的脚本的触发选项"出现的位置吗?

The point is: What else do I have to do to run the script and see what happens? Can I actually control where the "trigger option" to run my script will appear with menu kwarg?

推荐答案

我查看了权限,结果是 400.我确定执行了 chmod +x *py.好吧,我终于找到了触发器".

I reviewed permissions and they were 400. I was sure to have executed chmod +x *py. Well, finally I found the "triggers".

这篇关于我在哪里可以在 GIMP 中选择我的个人插件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆