编辑操作符源码(Edit Operator Source)

此插件允许搜索操作符名称(bl_idname)并打开包含这些名称的源文件。

激活

  • 打开 Blender 并转到 “偏好设置”,然后转到 “插件” 选项卡。

  • 选择 “开发” 类别,然后勾选 “Edit Operator Source” 以启用脚本。

描述

In the Text Editor ‣ Sidebar on the left find the Edit Operator panel and press the Edit Operator button. A searchable menu will show up. Scroll down until the operator is found. Enter the keywords in the search field to narrow down the available options. The source file containing the operator will open pointing to it's line.

To access the previously opened text files, select them from the header data-block menu.

Note

Similar to the Operator Cheat Sheet, the script will produce a small memory leak (~0.03mb) when enabled by accessing the Operator attributes from Python. It is a conscious trade-off made by Blender developers, as the needed setting/call in the source C code for this purpose, would increase the size of every Python instance by 4 bytes. In case of complex scenes, the increased memory footprint would be nontrivial compared to the few usage cases where it is currently needed.

参考

类别:

开发

描述:

Opens source file of chosen operator or call locations, if source not available.

位置:

文本编辑器 ‣ 侧栏 ‣ Edit Operator

文件:

development_edit_operator.py

作者:

scorpion81

维护者:

scorpion81

许可证:

通用公共许可证

支持级别:

社区

说明:

此插件与 Blender 捆绑在一起。