将“对齐画布边缘”设为默认值?

平面设计 瘸子 捕捉 配置
2022-02-18 19:44:56

在 Windows 上使用 GIMP 2.8.22。很多时候,我喜欢View -> Snap to Canvas Edges检查。我怎样才能使它成为默认值?

我唯一能找到的是 2007 年的一个论坛帖子,它建议修改源代码http://www.gimptalk.com/index.php?/topic/26643-how-do-i-set-default-values-for -gimp/

1个回答

那很容易。我已经想要这个至少一年了。我在 github 上找到了这篇文章:

https://gist.github.com/wrzlbrmft/53c39525cfa7a3e12f58

# ~/.gimp-*/gimprc
(default-snap-to-canvas yes)

那行得通!我关闭了 gimp,将上面的行添加到C:\Users\username\.gimp-2.8\gimprc文件并重新启动了 gimp

GIMP 2.10 更新

在 Gimp 2.10 中,上述内容似乎不起作用。捕捉设置的位置已更改为:

# (default-view
#     (show-menubar yes)
#     (show-statusbar yes)
#     (show-rulers yes)
#     (show-scrollbars yes)
#     (show-selection yes)
#     (show-layer-boundary yes)
#     (show-guides yes)
#     (show-grid no)
#     (show-sample-points yes)
#     (snap-to-guides yes)
#     (snap-to-grid no)
#     (snap-to-canvas no)
#     (snap-to-path no)
#     (padding-mode default)
#     (padding-color (color-rgb 1.000000 1.000000 1.000000)))

(注意,您可以在系统 gimprc 中看到可能的设置。在 Windows 中,它位于C:\Program Files\GIMP 2\etc\gimp\2.0\gimprc

然而,尽管将以下内容添加到我的用户 gimprc 并重新启动 gimp,但捕捉似乎并不适用。

(default-view
    (snap-to-canvas yes)

然后我意识到我正在编辑的 gimprc 位于 gimp-2.8 文件夹 ( C:\Users\username\.gimp-2.8\gimprc) 下。我的用户目录中似乎没有 gimp-2.10 文件夹。

然而,无论如何,现在在 GUI 中有一个设置。转到菜单Edit->Preferences和部分Image Windows->Snapping在重新启动之间更新此设置

在此处输入图像描述