|
Blender V5.3
|
#include <Python.h>#include <optional>#include "DNA_windowmanager_types.h"#include "RNA_types.hh"#include "BLI_listbase.hh"#include "BLI_string.hh"#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_function.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_layer.hh"#include "BKE_main.hh"#include "BKE_report.hh"#include "BKE_scene.hh"#include "DNA_scene_types.h"#include "DEG_depsgraph.hh"#include "CLG_log.h"Go to the source code of this file.
Classes | |
| struct | blender::BPyOpFunction |
Namespaces | |
| namespace | blender |
| BMesh Iterators. | |
Macros | |
| #define | BPY_RELEASE_GIL |
Functions | |
| static const char * | blender::opname_as_py (const char *opname, char opname_buf[OP_MAX_TYPENAME]) |
Private Utility Functions | |
| static void | blender::bpy_op_view_layer_update (bContext *C) |
| static bool | blender::bpy_op_parse_args (PyObject *args, const char **r_context_str, bool *r_is_undo) |
Operator Function: Poll | |
| static PyObject * | blender::bpy_op_fn_poll_impl (const char *opname, const char *context_str) |
| blender::PyDoc_STRVAR (bpy_op_fn_poll_doc, ".. method:: poll(context='EXEC_DEFAULT', /)\n" "\n" "Test if the operator can be executed in the current context.\n" "\n" ":param context: Execution context (optional)\n" ":type context: str\n" ":return: True if the operator can be executed\n" ":rtype: bool\n") | |
| static PyObject * | blender::bpy_op_fn_poll (BPyOpFunction *self, PyObject *args) |
Operator Function: Call | |
| static std::optional< wmOperatorStatus > | blender::bpy_op_fn_call_impl (const char *opname, PyObject *kw, const char *context_str, bool is_undo) |
| static PyObject * | blender::bpy_op_fn_call (BPyOpFunction *self, PyObject *args, PyObject *kwargs) |
Operator Function: As-String | |
| static PyObject * | blender::bpy_op_fn_as_string_impl (const char *opname, PyObject *kw, bool all_args, bool macro_args) |
| static PyObject * | blender::bpy_op_fn_as_string (BPyOpFunction *self) |
Operator Function: Get RNA Type | |
| static PyObject * | blender::bpy_op_fn_get_rna_type_impl (const char *opname) |
| blender::PyDoc_STRVAR (bpy_op_fn_get_rna_type_doc, ".. method:: get_rna_type()\n" "\n" "Get the RNA type definition for this operator.\n" "\n" ":return: RNA type object for introspection\n" ":rtype: :class:`bpy.types.Struct`\n") | |
| static PyObject * | blender::bpy_op_fn_get_rna_type (BPyOpFunction *self, PyObject *) |
| PyObject * | blender::pyop_getrna_type (PyObject *, PyObject *value) |
Operator Function: Get BL-Options | |
| static PyObject * | blender::bpy_op_fn_get_bl_options_impl (const char *opname) |
| blender::PyDoc_STRVAR (bpy_op_fn_get_bl_options_doc, "Set of option flags for this operator (e.g. 'REGISTER', 'UNDO').\n" "\n" ":type: set[str]\n") | |
| static PyObject * | blender::bpy_op_fn_get_bl_options (BPyOpFunction *self, void *) |
Type Functions for #BPyOpFunction | |
| static void | blender::bpy_op_fn_dealloc (BPyOpFunction *self) |
| static PyObject * | blender::bpy_op_fn_str (BPyOpFunction *self) |
| static PyObject * | blender::bpy_op_fn_repr (BPyOpFunction *self) |
Public API | |
| int | blender::BPyOpFunction_InitTypes () |
| PyObject * | blender::pyop_create_function (PyObject *, PyObject *args) |
Methods for #BPyOpFunctionType | |
| static PyMethodDef | blender::bpy_op_fn_methods [] |
| blender::PyDoc_STRVAR (bpy_op_fn_idname_doc, ".. method:: idname()\n" "\n" ":return: Return the Blender-format operator idname (e.g., 'OBJECT_OT_select_all').\n" ":rtype: str\n") | |
| static PyObject * | blender::bpy_op_fn_idname (BPyOpFunction *self, PyObject *) |
| blender::PyDoc_STRVAR (bpy_op_fn_idname_py_doc, ".. method:: idname_py()\n" "\n" ":return: Return the Python-format operator idname (e.g., 'object.select_all').\n" ":rtype: str\n") | |
| static PyObject * | blender::bpy_op_fn_idname_py (BPyOpFunction *self, PyObject *) |
| static PyObject * | blender::bpy_op_fn_get_doc_impl (BPyOpFunction *self) |
Get/Set for #BPyOpFunctionType | |
| static PyGetSetDef | blender::bpy_op_fn_getsetters [] |
| static PyObject * | blender::bpy_op_fn_get_doc (BPyOpFunction *self, void *) |
Type Declaration #BPyOpFunctionType | |
| static PyTypeObject | blender::BPyOpFunctionType |
| blender::PyDoc_STRVAR (bpy_op_fn_doc, "BPyOpFunction(context='EXEC_DEFAULT', undo=False, **kwargs)\n" "\n" " Execute the operator with the given parameters.\n" "\n" " :param context: Execution context (optional)\n" " :type context: str\n" " :param undo: Force undo behavior (optional)\n" " :type undo: bool\n" " :param kwargs: Operator properties\n" " :return: Set of completion status flags\n" " :rtype: set[str]\n") | |
This file implements the #BPyOpFunction type, a Python C-API implementation of a callable Blender operator.
Definition in file bpy_operator_function.cc.
| #define BPY_RELEASE_GIL |
Definition at line 65 of file bpy_operator_function.cc.