0

So we can access UI element of blender's python code, but what If I want to inspect, check or study the code of existing operator in blender? Is it accessible anywhere?

Ray Mairlot
  • 29,192
  • 11
  • 103
  • 125
  • Blender is open source, everything is by definition accessible, if not directly from code repositories https://developer.blender.org/diffusion – Duarte Farrajota Ramos May 08 '20 at 22:48
  • do I need to get the source code to check the operator code? – Wen-Han Diong May 08 '20 at 23:01
  • That depends whether the operator is from a Python add-on or if it's implement in the C or C++ code of Blender itself. The former can be inspected without the source code of Blender. – Robert Gützkow May 10 '20 at 12:55
  • Where do I find them? I guess for the python one, I guess, operator like "Separate" or "select linked" probably is done in python? or if its in C or C++ then nothing i could do I think.

    But it would be nice to be able to study existing operator and how they work

    – Wen-Han Diong May 10 '20 at 13:17
  • You may want to enable the Python tooltips and the developer extras (see manual). Select linked bpy.ops.mesh.select_linked() is implemented in editmesh_select.c as MESH_OT_select_linked. – Robert Gützkow May 15 '20 at 22:19

0 Answers0