|
Blender V5.3
|
#include <Python.h>#include <cstddef>#include "../generic/py_capi_utils.hh"#include "../generic/python_compat.hh"#include "BLI_path_utils.hh"#include "BLI_string.hh"#include "BKE_global.hh"#include "BKE_main.hh"#include "RNA_access.hh"#include "RNA_prototypes.hh"#include "bpy_rna.hh"#include "bpy_rna_data.hh"Go to the source code of this file.
Classes | |
| struct | blender::BPy_DataContext |
Namespaces | |
| namespace | blender |
| BMesh Iterators. | |
Functions | |
| static PyObject * | blender::bpy_rna_data_temp_data (PyObject *self, PyObject *args, PyObject *kw) |
| static PyObject * | blender::bpy_rna_data_context_enter (BPy_DataContext *self) |
| static PyObject * | blender::bpy_rna_data_context_exit (BPy_DataContext *self, PyObject *args) |
| static int | blender::bpy_rna_data_context_traverse (BPy_DataContext *self, visitproc visit, void *arg) |
| static int | blender::bpy_rna_data_context_clear (BPy_DataContext *self) |
| static void | blender::bpy_rna_data_context_dealloc (BPy_DataContext *self) |
| blender::PyDoc_STRVAR (bpy_rna_data_context_load_doc, ".. staticmethod:: temp_data(*, filepath=None)\n" "\n" " A context manager that temporarily creates blender file data.\n" "\n" " :param filepath: The file path for the newly temporary data. " "When None, the path of the currently open file is used.\n" " :type filepath: str | bytes | None\n" "\n" " :return: Blend file data which is freed once the context exits.\n" " :rtype: :class:`bpy.types.BlendData`\n") | |
| int | blender::BPY_rna_data_context_type_ready () |
Variables | |
| static PyMethodDef | blender::bpy_rna_data_context_methods [] |
| static PyTypeObject | blender::bpy_rna_data_context_Type |
| PyMethodDef | blender::BPY_rna_data_context_method_def |
This file defines the API to support temporarily creating #Main data. The only use case for this is currently to support temporarily loading data-blocks which can be freed, without them polluting the current G_MAIN.
This is exposed via a context manager bpy.types.BlendData.temp_data(...) which returns a new bpy.types.BlendData that is freed once the context manager exits.
Definition in file bpy_rna_data.cc.