Biên Soạn Mã Nguồn của Thao Tác (Edit Operator Source)

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

Kích Hoạt (Activation)

  • Mở Blender và chuyển đến Cấu Hình, sau đó đến thẻ Trình Bổ Sung.

  • Click Development then Edit Operator Source to enable the script.

Miêu Tả (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.

Ghi chú

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.

Tham Chiếu (Reference)

Hạng Mục (Category)

Xây Dựng (Development)

Miêu Tả (Description)

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

Địa Điểm (Location)

Text Editor ‣ Sidebar ‣ Edit Operator

Tập Tin (File)

development_edit_operator.py

Tác Giả (Author)

scorpion81

Người Bảo Trì (Maintainer)

scorpion81

Giấy Phép (License)

GPL

Mức Hỗ Trợ (Support Level)

Cộng Đồng

Ghi Chú (Note)

Trình Bổ Sung này được gói cùng với Blender.