|
Blender V5.0
|
#include <Python.h>#include "RNA_types.hh"#include "BLI_listbase.h"#include "../generic/py_capi_rna.hh"#include "../generic/py_capi_utils.hh"#include "../generic/python_compat.hh"#include "BPY_extern.hh"#include "bpy_capi_utils.hh"#include "bpy_operator.hh"#include "bpy_operator_wrap.hh"#include "bpy_rna.hh"#include "RNA_access.hh"#include "RNA_enum_types.hh"#include "RNA_prototypes.hh"#include "WM_api.hh"#include "WM_types.hh"#include "MEM_guardedalloc.h"#include "BKE_context.hh"#include "BKE_report.hh"#include "CLG_log.h"Go to the source code of this file.
Macros | |
| #define | BPY_RELEASE_GIL |
Functions | |
| static wmOperatorType * | ot_lookup_from_py_string (PyObject *value, const char *py_fn_id) |
| static PyObject * | pyop_poll (PyObject *, PyObject *args) |
| static PyObject * | pyop_call (PyObject *, PyObject *args) |
| static PyObject * | pyop_as_string (PyObject *, PyObject *args) |
| static PyObject * | pyop_dir (PyObject *) |
| static PyObject * | pyop_getrna_type (PyObject *, PyObject *value) |
| static PyObject * | pyop_get_bl_options (PyObject *, PyObject *value) |
| PyObject * | BPY_operator_module () |
Variables | |
| static PyMethodDef | bpy_ops_methods [] |
| static PyModuleDef | bpy_ops_module |
This file defines _bpy.ops, an internal python module which gives Python the ability to inspect and call operators (defined by C or Python).
Definition in file bpy_operator.cc.
| #define BPY_RELEASE_GIL |
Definition at line 47 of file bpy_operator.cc.
|
nodiscard |
Definition at line 462 of file bpy_operator.cc.
References bpy_ops_module.
Referenced by BPy_init_modules().
|
static |
Definition at line 49 of file bpy_operator.cc.
References ot, and WM_operatortype_find().
Referenced by pyop_get_bl_options(), and pyop_getrna_type().
|
static |
Definition at line 308 of file bpy_operator.cc.
References BPY_context_get(), C, ot, ptr, PY_ARG_PARSER_HEAD_COMPAT, PyC_ParseBool(), PyC_UnicodeFromStdStr(), pyrna_pydict_to_props(), RNA_pointer_create_discrete(), WM_operator_properties_free(), WM_operator_pystring_ex(), and WM_operatortype_find().
|
static |
Definition at line 131 of file bpy_operator.cc.
References BKE_report_print_level_set(), BKE_reports_clear(), BKE_reports_free(), BKE_reports_init(), BLI_listbase_is_empty(), BPY_context_get(), BPY_modules_update(), BPy_reports_to_error(), BPy_reports_write_stdout(), C, CLG_quiet_get(), CTX_wm_operator_poll_msg_clear(), CTX_wm_operator_poll_msg_get(), blender::wm::ExecDefault, ReportList::flag, ReportList::list, MEM_freeN(), MEM_mallocN(), OPERATOR_CANCELLED, ot, ReportList::printlevel, ptr, PY_ARG_PARSER_HEAD_COMPAT, pyrna_enum_bitfield_as_set(), pyrna_enum_repr(), pyrna_pydict_to_props(), pyrna_write_check(), rna_enum_operator_context_items, rna_enum_operator_return_items, RNA_enum_value_from_id(), RPT_DEBUG, RPT_FREE, RPT_OP_HOLD, RPT_PRINT_HANDLED_BY_OWNER, RPT_STORE, RPT_WARNING, WM_operator_call_py(), WM_operator_name_call(), WM_operator_poll_context(), WM_operator_properties_create_ptr(), WM_operator_properties_free(), WM_operator_properties_sanitize(), and WM_operatortype_find().
|
static |
Definition at line 386 of file bpy_operator.cc.
References i, ot, types, and WM_operatortypes_registered_get().
|
static |
Definition at line 412 of file bpy_operator.cc.
References ot, ot_lookup_from_py_string(), pyrna_enum_bitfield_as_set(), and rna_enum_operator_type_flag_items.
|
static |
Definition at line 400 of file bpy_operator.cc.
References ot, ot_lookup_from_py_string(), ptr, pyrna_struct_CreatePyObject(), and RNA_pointer_create_discrete().
|
static |
Definition at line 65 of file bpy_operator.cc.
References BPY_context_get(), C, blender::wm::ExecDefault, MEM_freeN(), ot, PY_ARG_PARSER_HEAD_COMPAT, pyrna_enum_repr(), ret, rna_enum_operator_context_items, RNA_enum_value_from_id(), WM_operator_poll_context(), and WM_operatortype_find().
|
static |
Definition at line 431 of file bpy_operator.cc.
|
static |
Definition at line 450 of file bpy_operator.cc.
Referenced by BPY_operator_module().