|
Blender V4.3
|
#include <Python.h>#include "RNA_types.hh"#include "BLI_listbase.h"#include "BLI_utildefines.h"#include "../generic/py_capi_rna.hh"#include "../generic/py_capi_utils.hh"#include "../generic/python_compat.hh"#include "../generic/python_utildefines.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 "BLI_ghash.h"#include "BKE_context.hh"#include "BKE_global.hh"#include "BKE_report.hh"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).
scripts/modules/bpy/ops.py which exposes operators as dynamically defined modules & callable objects to access all operators. Definition in file bpy_operator.cc.
| #define BPY_RELEASE_GIL |
Definition at line 50 of file bpy_operator.cc.
| PyObject * BPY_operator_module | ( | ) |
Definition at line 465 of file bpy_operator.cc.
References bpy_ops_module.
Referenced by BPy_init_modules().
|
static |
Definition at line 52 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 311 of file bpy_operator.cc.
References BPY_context_get(), ot, ptr, PY_ARG_PARSER_HEAD_COMPAT, PyC_ParseBool(), pyrna_pydict_to_props(), RNA_pointer_create(), wmOperatorType::srna, WM_operator_properties_free(), WM_operator_pystring_ex(), and WM_operatortype_find().
|
static |
Definition at line 134 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(), CTX_wm_operator_poll_msg_clear(), CTX_wm_operator_poll_msg_get(), ReportList::flag, G, 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_OP_EXEC_DEFAULT, 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 398 of file bpy_operator.cc.
References wmOperatorType::idname, ot, and WM_operatortype_map().
|
static |
Definition at line 424 of file bpy_operator.cc.
References wmOperatorType::flag, ot, ot_lookup_from_py_string(), pyrna_enum_bitfield_as_set(), and rna_enum_operator_type_flag_items.
|
static |
Definition at line 412 of file bpy_operator.cc.
References ot, ot_lookup_from_py_string(), ptr, pyrna_struct_CreatePyObject(), RNA_pointer_create(), and wmOperatorType::srna.
|
static |
Definition at line 68 of file bpy_operator.cc.
References BPY_context_get(), MEM_freeN(), ot, PY_ARG_PARSER_HEAD_COMPAT, pyrna_enum_repr(), ret, rna_enum_operator_context_items, RNA_enum_value_from_id(), WM_OP_EXEC_DEFAULT, WM_operator_poll_context(), and WM_operatortype_find().
|
static |
Definition at line 438 of file bpy_operator.cc.
|
static |
Definition at line 453 of file bpy_operator.cc.
Referenced by BPY_operator_module().