Edit Operator Source

Introduction

This add-on allows searching for operator names (bl_idname) and opens source files containing them.

Activation

  • Відкрийте Blender та перейдіть Уподобання – Preferences, потім у вкладку «Додатки» – Add-ons.
  • Клацніть Development, потім Edit Operator Source для вмикання цього скрипту.

Опис – Description

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.

Примітка

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.

Орієнтир – Reference

Категорія – Category:
 Розробка – Development
Опис – Description:
 Відкриває файл джерела обраного оператора або місць виклику, якщо джерело не доступне.
Локація – Location:
 Text Editor ‣ Sidebar ‣ Edit Operator
Файл – File:development_edit_operator.py
Автор – Author:scorpion81
Maintainer:scorpion81
License:GPL
Support Level:Community
Note:Цей додаток поставляється у комплекті з Blender’ом.