|
Blender V4.5
|
#include <Python.h>#include <cfloat>#include <cstddef>#include <optional>#include "RNA_path.hh"#include "RNA_types.hh"#include "BLI_dynstr.h"#include "BLI_listbase.h"#include "BLI_math_rotation.h"#include "BLI_path_utils.hh"#include "BLI_string.h"#include "BLI_string_utf8.h"#include "BLI_utildefines.h"#include "BLI_vector.hh"#include "BPY_extern.hh"#include "BPY_extern_clog.hh"#include "bpy_capi_utils.hh"#include "bpy_intern_string.hh"#include "bpy_props.hh"#include "bpy_rna.hh"#include "bpy_rna_anim.hh"#include "bpy_rna_callback.hh"#include "RNA_access.hh"#include "RNA_define.hh"#include "RNA_enum_types.hh"#include "RNA_prototypes.hh"#include "CLG_log.h"#include "MEM_guardedalloc.h"#include "BKE_context.hh"#include "BKE_global.hh"#include "BKE_idprop.hh"#include "BKE_idtype.hh"#include "BKE_main.hh"#include "BKE_report.hh"#include "BKE_node.hh"#include "DEG_depsgraph_query.hh"#include "../generic/idprop_py_api.hh"#include "../generic/idprop_py_ui_api.hh"#include "../generic/py_capi_rna.hh"#include "../generic/py_capi_utils.hh"#include "../generic/python_compat.hh"#include "../generic/python_utildefines.hh"#include "../mathutils/mathutils.hh"Go to the source code of this file.
Classes | |
| struct | BPy_PropertyPointerRNA_Reference |
| struct | BPy_FunctionPointerRNA_Reference |
| struct | BPy_TypesModule_State |
Macros | |
| #define | USE_PEDANTIC_WRITE |
| #define | USE_MATHUTILS |
| #define | USE_STRING_COERCE |
| #define | USE_POSTPONED_ANNOTATIONS |
| #define | BPY_DOC_ID_PROP_TYPE_NOTE |
| #define | MATHUTILS_CB_SUBTYPE_EUL 0 |
| #define | MATHUTILS_CB_SUBTYPE_VEC 1 |
| #define | MATHUTILS_CB_SUBTYPE_QUAT 2 |
| #define | MATHUTILS_CB_SUBTYPE_COLOR 3 |
| #define | PROP_ALL_VECTOR_SUBTYPES |
| #define | PYRNA_PROP_COLLECTION_ABS_INDEX(ret_err) |
| #define | BPY_REPLACEMENT_STRING(rna_attr, py_attr) |
Functions | |
| static PyObject * | pyrna_struct_CreatePyObject_from_type (const PointerRNA *ptr, PyTypeObject *tp, void **instance) |
| static PyObject * | pyrna_srna_Subtype (StructRNA *srna) |
| static PyObject * | pyrna_struct_Subtype (PointerRNA *ptr) |
| static PyObject * | pyrna_prop_collection_values (BPy_PropertyRNA *self) |
| static StructRNA * | srna_from_ptr (PointerRNA *ptr) |
| int | pyrna_struct_validity_check_only (const BPy_StructRNA *pysrna) |
| void | pyrna_struct_validity_exception_only (const BPy_StructRNA *pysrna) |
| int | pyrna_struct_validity_check (const BPy_StructRNA *pysrna) |
| int | pyrna_prop_validity_check (const BPy_PropertyRNA *self) |
| void | pyrna_invalidate (BPy_DummyPointerRNA *self) |
| void | BPY_id_release (ID *id) |
| static bool | rna_id_write_error (PointerRNA *ptr, PyObject *key) |
| bool | pyrna_write_check () |
| void | pyrna_write_set (bool val) |
| static Py_ssize_t | pyrna_prop_collection_length (BPy_PropertyRNA *self) |
| static Py_ssize_t | pyrna_prop_array_length (BPy_PropertyArrayRNA *self) |
| static int | pyrna_py_to_prop (PointerRNA *ptr, PropertyRNA *prop, void *data, PyObject *value, const char *error_prefix) |
| static PyObject * | pyrna_prop_array_subscript_slice (BPy_PropertyArrayRNA *self, PointerRNA *ptr, PropertyRNA *prop, Py_ssize_t start, Py_ssize_t stop, Py_ssize_t length) |
| static short | pyrna_rotation_euler_order_get (PointerRNA *ptr, const short order_fallback, PropertyRNA **r_prop_eul_order) |
| static int | mathutils_rna_generic_check (BaseMathObject *bmo) |
| static int | mathutils_rna_vector_get (BaseMathObject *bmo, int subtype) |
| static int | mathutils_rna_vector_set (BaseMathObject *bmo, int subtype) |
| static int | mathutils_rna_vector_get_index (BaseMathObject *bmo, int, int index) |
| static int | mathutils_rna_vector_set_index (BaseMathObject *bmo, int, int index) |
| static int | mathutils_rna_matrix_get (BaseMathObject *bmo, int) |
| static int | mathutils_rna_matrix_set (BaseMathObject *bmo, int) |
| PyObject * | pyrna_math_object_from_array (PointerRNA *ptr, PropertyRNA *prop) |
| static int | pyrna_struct_compare (BPy_StructRNA *a, BPy_StructRNA *b) |
| static int | pyrna_prop_compare (BPy_PropertyRNA *a, BPy_PropertyRNA *b) |
| static PyObject * | pyrna_struct_richcmp (PyObject *a, PyObject *b, int op) |
| static PyObject * | pyrna_prop_richcmp (PyObject *a, PyObject *b, int op) |
| static PyObject * | pyrna_struct_str (BPy_StructRNA *self) |
| static PyObject * | pyrna_struct_repr (BPy_StructRNA *self) |
| static PyObject * | pyrna_prop_str (BPy_PropertyRNA *self) |
| static PyObject * | pyrna_prop_repr_ex (BPy_PropertyRNA *self, const int index_dim, const int index) |
| static PyObject * | pyrna_prop_repr (BPy_PropertyRNA *self) |
| static PyObject * | pyrna_prop_array_repr (BPy_PropertyArrayRNA *self) |
| static PyObject * | pyrna_func_repr (BPy_FunctionRNA *self) |
| static Py_hash_t | pyrna_struct_hash (BPy_StructRNA *self) |
| static long | pyrna_prop_hash (BPy_PropertyRNA *self) |
| static const char * | pyrna_enum_as_string (PointerRNA *ptr, PropertyRNA *prop) |
| static int | pyrna_string_to_enum (PyObject *item, PointerRNA *ptr, PropertyRNA *prop, int *r_value, const char *error_prefix) |
| static int | pyrna_prop_to_enum_bitfield (PointerRNA *ptr, PropertyRNA *prop, PyObject *value, int *r_value, const char *error_prefix) |
| static PyObject * | pyrna_enum_to_py (PointerRNA *ptr, PropertyRNA *prop, int val) |
| PyObject * | pyrna_prop_to_py (PointerRNA *ptr, PropertyRNA *prop) |
| int | pyrna_pydict_to_props (PointerRNA *ptr, PyObject *kw, const bool all_args, const char *error_prefix) |
| static PyObject * | pyrna_func_to_py (const PointerRNA *ptr, FunctionRNA *func) |
| static PyObject * | pyrna_prop_array_to_py_index (BPy_PropertyArrayRNA *self, int index) |
| static int | pyrna_py_to_prop_array_index (BPy_PropertyArrayRNA *self, int index, PyObject *value) |
| static int | pyrna_prop_array_bool (BPy_PropertyRNA *self) |
| static int | pyrna_prop_collection_bool (BPy_PropertyRNA *self) |
| static int | pyrna_prop_collection_subscript_is_valid_or_error (const PyObject *value) |
| static void | pyrna_prop_collection_string_subscript_unsupported_error (BPy_PropertyRNA *self, const char *error_prefix) |
| static int | pyrna_prop_collection_string_subscript_supported_or_error (BPy_PropertyRNA *self, const char *error_prefix) |
| static PyObject * | pyrna_prop_collection_subscript_int (BPy_PropertyRNA *self, Py_ssize_t keynum) |
| static int | pyrna_prop_collection_ass_subscript_int (BPy_PropertyRNA *self, Py_ssize_t keynum, PyObject *value) |
| static PyObject * | pyrna_prop_array_subscript_int (BPy_PropertyArrayRNA *self, Py_ssize_t keynum) |
| static PyObject * | pyrna_prop_collection_subscript_str (BPy_PropertyRNA *self, const char *keyname) |
| static int | pyrna_prop_collection_subscript_str_lib_pair_ptr (BPy_PropertyRNA *self, PyObject *key, const char *err_prefix, const short err_not_found, PointerRNA *r_ptr) |
| static PyObject * | pyrna_prop_collection_subscript_str_lib_pair (BPy_PropertyRNA *self, PyObject *key, const char *err_prefix, const bool err_not_found) |
| static PyObject * | pyrna_prop_collection_subscript_slice (BPy_PropertyRNA *self, Py_ssize_t start, Py_ssize_t stop) |
| static PyObject * | pyrna_prop_collection_subscript (BPy_PropertyRNA *self, PyObject *key) |
| static int | pyrna_prop_collection_type_check (BPy_PropertyRNA *self, PyObject *value) |
| static int | pyrna_prop_collection_ass_subscript (BPy_PropertyRNA *self, PyObject *key, PyObject *value) |
| static PyObject * | pyrna_prop_array_subscript (BPy_PropertyArrayRNA *self, PyObject *key) |
| static PyObject * | prop_subscript_ass_array_slice__as_seq_fast (PyObject *value, int length) |
| static int | prop_subscript_ass_array_slice__float_recursive (PyObject **value_items, float *value, int totdim, const int dimsize[], const float range[2]) |
| static int | prop_subscript_ass_array_slice__int_recursive (PyObject **value_items, int *value, int totdim, const int dimsize[], const int range[2]) |
| static int | prop_subscript_ass_array_slice__bool_recursive (PyObject **value_items, bool *value, int totdim, const int dimsize[]) |
| static int | prop_subscript_ass_array_slice (PointerRNA *ptr, PropertyRNA *prop, int arraydim, int arrayoffset, int start, int stop, int length, PyObject *value_orig) |
| static int | prop_subscript_ass_array_int (BPy_PropertyArrayRNA *self, Py_ssize_t keynum, PyObject *value) |
| static int | pyrna_prop_array_ass_subscript (BPy_PropertyArrayRNA *self, PyObject *key, PyObject *value) |
| static int | pyrna_prop_array_contains (BPy_PropertyRNA *self, PyObject *value) |
| static int | pyrna_prop_collection_contains (BPy_PropertyRNA *self, PyObject *key) |
| static int | pyrna_struct_contains (BPy_StructRNA *self, PyObject *value) |
| static PyObject * | pyrna_struct_subscript (BPy_StructRNA *self, PyObject *key) |
| static int | pyrna_struct_ass_subscript (BPy_StructRNA *self, PyObject *key, PyObject *value) |
| PyDoc_STRVAR (pyrna_struct_keys_doc, ".. method:: keys()\n" "\n" " Returns the keys of this objects custom properties (matches Python's\n" " dictionary function of the same name).\n" "\n" " :return: custom property keys.\n" " :rtype: :class:`idprop.types.IDPropertyGroupViewKeys`\n" "\n" BPY_DOC_ID_PROP_TYPE_NOTE) | |
| static PyObject * | pyrna_struct_keys (BPy_StructRNA *self) |
| PyDoc_STRVAR (pyrna_struct_items_doc, ".. method:: items()\n" "\n" " Returns the items of this objects custom properties (matches Python's\n" " dictionary function of the same name).\n" "\n" " :return: custom property key, value pairs.\n" " :rtype: :class:`idprop.types.IDPropertyGroupViewItems`\n" "\n" BPY_DOC_ID_PROP_TYPE_NOTE) | |
| static PyObject * | pyrna_struct_items (BPy_StructRNA *self) |
| PyDoc_STRVAR (pyrna_struct_values_doc, ".. method:: values()\n" "\n" " Returns the values of this objects custom properties (matches Python's\n" " dictionary function of the same name).\n" "\n" " :return: custom property values.\n" " :rtype: :class:`idprop.types.IDPropertyGroupViewValues`\n" "\n" BPY_DOC_ID_PROP_TYPE_NOTE) | |
| static PyObject * | pyrna_struct_values (BPy_StructRNA *self) |
| PyDoc_STRVAR (pyrna_struct_is_property_set_doc, ".. method:: is_property_set(property, /, *, ghost=True)\n" "\n" " Check if a property is set, use for testing operator properties.\n" "\n" " :arg property: Property name.\n" " :type property: str\n" " :arg ghost: Used for operators that re-run with previous settings.\n" " In this case the property is not marked as set,\n" " yet the value from the previous execution is used.\n" "\n" " In rare cases you may want to set this option to false.\n" "\n" " :type ghost: bool\n" " :return: True when the property has been set.\n" " :rtype: bool\n") | |
| static PyObject * | pyrna_struct_is_property_set (BPy_StructRNA *self, PyObject *args, PyObject *kw) |
| PyDoc_STRVAR (pyrna_struct_property_unset_doc, ".. method:: property_unset(property, /)\n" "\n" " Unset a property, will use default value afterward.\n" "\n" " :arg property: Property name.\n" " :type property: str\n") | |
| static PyObject * | pyrna_struct_property_unset (BPy_StructRNA *self, PyObject *args) |
| PyDoc_STRVAR (pyrna_struct_is_property_hidden_doc, ".. method:: is_property_hidden(property, /)\n" "\n" " Check if a property is hidden.\n" "\n" " :arg property: Property name.\n" " :type property: str\n" " :return: True when the property is hidden.\n" " :rtype: bool\n") | |
| static PyObject * | pyrna_struct_is_property_hidden (BPy_StructRNA *self, PyObject *args) |
| PyDoc_STRVAR (pyrna_struct_is_property_readonly_doc, ".. method:: is_property_readonly(property, /)\n" "\n" " Check if a property is readonly.\n" "\n" " :arg property: Property name.\n" " :type property: str\n" " :return: True when the property is readonly (not writable).\n" " :rtype: bool\n") | |
| static PyObject * | pyrna_struct_is_property_readonly (BPy_StructRNA *self, PyObject *args) |
| PyDoc_STRVAR (pyrna_struct_is_property_overridable_library_doc, ".. method:: is_property_overridable_library(property, /)\n" "\n" " Check if a property is overridable.\n" "\n" " :arg property: Property name.\n" " :type property: str\n" " :return: True when the property is overridable.\n" " :rtype: bool\n") | |
| static PyObject * | pyrna_struct_is_property_overridable_library (BPy_StructRNA *self, PyObject *args) |
| PyDoc_STRVAR (pyrna_struct_property_overridable_library_set_doc, ".. method:: property_overridable_library_set(property, overridable, /)\n" "\n" " Define a property as overridable or not (only for custom properties!).\n" "\n" " :arg property: Property name.\n" " :type property: str\n" " :arg overridable: Overridable status to set.\n" " :type overridable: bool\n" " :return: True when the overridable status of the property was successfully set.\n" " :rtype: bool\n") | |
| static PyObject * | pyrna_struct_property_overridable_library_set (BPy_StructRNA *self, PyObject *args) |
| PyDoc_STRVAR (pyrna_struct_path_resolve_doc, ".. method:: path_resolve(path, coerce=True, /)\n" "\n" " Returns the property from the path, raise an exception when not found.\n" "\n" " :arg path: path which this property resolves.\n" " :type path: str\n" " :arg coerce: optional argument, when True, the property will be converted\n" " into its Python representation.\n" " :type coerce: bool\n" " :return: Property value or property object.\n" " :rtype: Any | :class:`bpy.types.bpy_prop`\n") | |
| static PyObject * | pyrna_struct_path_resolve (BPy_StructRNA *self, PyObject *args) |
| PyDoc_STRVAR (pyrna_struct_path_from_id_doc, ".. method:: path_from_id(property=\"\", /)\n" "\n" " Returns the data path from the ID to this object (string).\n" "\n" " :arg property: Optional property name which can be used if the path is\n" " to a property of this object.\n" " :type property: str\n" " :return: The path from :class:`bpy.types.bpy_struct.id_data`\n" " to this struct and property (when given).\n" " :rtype: str\n") | |
| static PyObject * | pyrna_struct_path_from_id (BPy_StructRNA *self, PyObject *args) |
| PyDoc_STRVAR (pyrna_prop_path_from_id_doc, ".. method:: path_from_id()\n" "\n" " Returns the data path from the ID to this property (string).\n" "\n" " :return: The path from :class:`bpy.types.bpy_struct.id_data` to this property.\n" " :rtype: str\n") | |
| static PyObject * | pyrna_prop_path_from_id (BPy_PropertyRNA *self) |
| PyDoc_STRVAR (pyrna_prop_as_bytes_doc, ".. method:: as_bytes()\n" "\n" " Returns this string property as a byte rather than a Python string.\n" "\n" " :return: The string as bytes.\n" " :rtype: bytes\n") | |
| static PyObject * | pyrna_prop_as_bytes (BPy_PropertyRNA *self) |
| PyDoc_STRVAR (pyrna_prop_update_doc, ".. method:: update()\n" "\n" " Execute the properties update callback.\n" "\n" " .. note::\n" " This is called when assigning a property,\n" " however in rare cases it's useful to call explicitly.\n") | |
| static PyObject * | pyrna_prop_update (BPy_PropertyRNA *self) |
| PyDoc_STRVAR (pyrna_struct_type_recast_doc, ".. method:: type_recast()\n" "\n" " Return a new instance, this is needed because types\n" " such as textures can be changed at runtime.\n" "\n" " :return: a new instance of this object with the type initialized again.\n" " :rtype: :class:`bpy.types.bpy_struct`\n") | |
| static PyObject * | pyrna_struct_type_recast (BPy_StructRNA *self) |
| static PyObject * | pyrna_struct_bl_rna_find_subclass_recursive (PyObject *cls, const char *id) |
| PyDoc_STRVAR (pyrna_struct_bl_rna_get_subclass_py_doc, ".. classmethod:: bl_rna_get_subclass_py(id, default=None, /)\n" "\n" " :arg id: The RNA type identifier.\n" " :type id: str\n" " :return: The class or default when not found.\n" " :rtype: type\n") | |
| static PyObject * | pyrna_struct_bl_rna_get_subclass_py (PyObject *cls, PyObject *args) |
| PyDoc_STRVAR (pyrna_struct_bl_rna_get_subclass_doc, ".. classmethod:: bl_rna_get_subclass(id, default=None, /)\n" "\n" " :arg id: The RNA type identifier.\n" " :type id: str\n" " :return: The RNA type or default when not found.\n" " :rtype: :class:`bpy.types.Struct` subclass\n") | |
| static PyObject * | pyrna_struct_bl_rna_get_subclass (PyObject *cls, PyObject *args) |
| PyDoc_STRVAR (pyrna_struct_get_ancestors_doc, ".. method:: rna_ancestors()\n" "\n" " Return the chain of data containing this struct, if known.\n" " The first item is the root (typically an ID), the last one is the immediate parent.\n" " May be empty.\n" "\n" " :return: a list of this object's ancestors.\n" " :rtype: list[:class:`bpy.types.bpy_struct`]\n") | |
| static PyObject * | pyrna_struct_get_ancestors (BPy_StructRNA *self) |
| static void | pyrna_dir_members_py__add_keys (PyObject *list, PyObject *dict) |
| static void | pyrna_dir_members_py (PyObject *list, PyObject *self) |
| static void | pyrna_dir_members_rna (PyObject *list, PointerRNA *ptr) |
| static PyObject * | pyrna_struct_dir (BPy_StructRNA *self) |
| PyDoc_STRVAR (pyrna_struct_id_properties_ensure_doc, ".. method:: id_properties_ensure()\n" "\n" " :return: the parent group for an RNA struct's custom IDProperties.\n" " :rtype: :class:`idprop.types.IDPropertyGroup`\n") | |
| static PyObject * | pyrna_struct_id_properties_ensure (BPy_StructRNA *self) |
| PyDoc_STRVAR (pyrna_struct_id_properties_ui_doc, ".. method:: id_properties_ui(key, /)\n" "\n" " :return: Return an object used to manage an IDProperty's UI data.\n" " :arg key: String name of the property.\n" " :type key: str.\n" " :rtype: :class:`bpy.types.IDPropertyUIManager`\n") | |
| static PyObject * | pyrna_struct_id_properties_ui (BPy_StructRNA *self, PyObject *args) |
| PyDoc_STRVAR (pyrna_struct_id_properties_clear_doc, ".. method:: id_properties_clear()\n" "\n" " :return: Remove the parent group for an RNA struct's custom IDProperties.\n") | |
| static PyObject * | pyrna_struct_id_properties_clear (BPy_StructRNA *self) |
| static PyObject * | pyrna_struct_getattro (BPy_StructRNA *self, PyObject *pyname) |
| static int | pyrna_struct_meta_idprop_setattro (PyObject *cls, PyObject *attr, PyObject *value) |
| static int | pyrna_struct_setattro (BPy_StructRNA *self, PyObject *pyname, PyObject *value) |
| static PyObject * | pyrna_prop_dir (BPy_PropertyRNA *self) |
| static PyObject * | pyrna_prop_array_getattro (BPy_PropertyRNA *self, PyObject *pyname) |
| static PyObject * | pyrna_prop_collection_getattro (BPy_PropertyRNA *self, PyObject *pyname) |
| static int | pyrna_prop_collection_setattro (BPy_PropertyRNA *self, PyObject *pyname, PyObject *value) |
| PyDoc_STRVAR (pyrna_prop_collection_idprop_add_doc, ".. method:: add()\n" "\n" " This is a function to add a new item to a collection.\n" "\n" " :return: A newly created item.\n" " :rtype: Any\n") | |
| static PyObject * | pyrna_prop_collection_idprop_add (BPy_PropertyRNA *self) |
| PyDoc_STRVAR (pyrna_prop_collection_idprop_remove_doc, ".. method:: remove(index)\n" "\n" " This is a function to remove an item from a collection.\n" "\n" " :arg index: Index of the item to be removed.\n" " :type index: int\n") | |
| static PyObject * | pyrna_prop_collection_idprop_remove (BPy_PropertyRNA *self, PyObject *value) |
| PyDoc_STRVAR (pyrna_prop_collection_idprop_clear_doc, ".. method:: clear()\n" "\n" " This is a function to remove all items from a collection.\n") | |
| static PyObject * | pyrna_prop_collection_idprop_clear (BPy_PropertyRNA *self) |
| PyDoc_STRVAR (pyrna_prop_collection_idprop_move_doc, ".. method:: move(src_index, dst_index)\n" "\n" " This is a function to move an item in a collection.\n" "\n" " :arg src_index: Source item index.\n" " :type src_index: int\n" " :arg dst_index: Destination item index.\n" " :type dst_index: int\n") | |
| static PyObject * | pyrna_prop_collection_idprop_move (BPy_PropertyRNA *self, PyObject *args) |
| PyDoc_STRVAR (pyrna_struct_get_id_data_doc, "The :class:`bpy.types.ID` object this datablock is from or None, (not available for " "all data types)\n" "\n" ":type: :class:`bpy.types.ID`, (readonly)\n") | |
| static PyObject * | pyrna_struct_get_id_data (BPy_DummyPointerRNA *self, void *) |
| PyDoc_STRVAR (pyrna_struct_get_data_doc, "The data this property is using, *type* :class:`bpy.types.bpy_struct`") | |
| static PyObject * | pyrna_struct_get_data (BPy_DummyPointerRNA *self, void *) |
| PyDoc_STRVAR (pyrna_struct_get_rna_type_doc, "The property type for introspection") | |
| static PyObject * | pyrna_struct_get_rna_type (BPy_PropertyRNA *self, void *) |
| static PyObject * | pyrna_func_doc_get (BPy_FunctionRNA *self, void *closure) |
| PyDoc_STRVAR (pyrna_prop_collection_keys_doc, ".. method:: keys()\n" "\n" " Return the identifiers of collection members\n" " (matching Python's dict.keys() functionality).\n" "\n" " :return: the identifiers for each member of this collection.\n" " :rtype: list[str]\n") | |
| static PyObject * | pyrna_prop_collection_keys (BPy_PropertyRNA *self) |
| PyDoc_STRVAR (pyrna_prop_collection_items_doc, ".. method:: items()\n" "\n" " Return the identifiers of collection members\n" " (matching Python's dict.items() functionality).\n" "\n" " :return: (key, value) pairs for each member of this collection.\n" " :rtype: list[tuple[str, :class:`bpy.types.bpy_struct`]]\n") | |
| static PyObject * | pyrna_prop_collection_items (BPy_PropertyRNA *self) |
| PyDoc_STRVAR (pyrna_prop_collection_values_doc, ".. method:: values()\n" "\n" " Return the values of collection\n" " (matching Python's dict.values() functionality).\n" "\n" " :return: The members of this collection.\n" " :rtype: list[:class:`bpy.types.bpy_struct` | None]\n") | |
| PyDoc_STRVAR (pyrna_struct_get_doc, ".. method:: get(key, default=None, /)\n" "\n" " Returns the value of the custom property assigned to key or default\n" " when not found (matches Python's dictionary function of the same name).\n" "\n" " :arg key: The key associated with the custom property.\n" " :type key: str\n" " :arg default: Optional argument for the value to return if\n" " *key* is not found.\n" " :type default: Any\n" " :return: Custom property value or default.\n" " :rtype: Any\n" "\n" BPY_DOC_ID_PROP_TYPE_NOTE) | |
| static PyObject * | pyrna_struct_get (BPy_StructRNA *self, PyObject *args) |
| PyDoc_STRVAR (pyrna_struct_pop_doc, ".. method:: pop(key, default=None, /)\n" "\n" " Remove and return the value of the custom property assigned to key or default\n" " when not found (matches Python's dictionary function of the same name).\n" "\n" " :arg key: The key associated with the custom property.\n" " :type key: str\n" " :arg default: Optional argument for the value to return if\n" " *key* is not found.\n" " :type default: Any\n" " :return: Custom property value or default.\n" " :rtype: Any\n" "\n" BPY_DOC_ID_PROP_TYPE_NOTE) | |
| static PyObject * | pyrna_struct_pop (BPy_StructRNA *self, PyObject *args) |
| PyDoc_STRVAR (pyrna_struct_as_pointer_doc, ".. method:: as_pointer()\n" "\n" " Returns the memory address which holds a pointer to Blender's internal data\n" "\n" " :return: int (memory address).\n" " :rtype: int\n" "\n" " .. note:: This is intended only for advanced script writers who need to\n" " pass blender data to their own C/Python modules.\n") | |
| static PyObject * | pyrna_struct_as_pointer (BPy_StructRNA *self) |
| PyDoc_STRVAR (pyrna_prop_collection_get_doc, ".. method:: get(key, default=None)\n" "\n" " Returns the value of the item assigned to key or default when not found\n" " (matches Python's dictionary function of the same name).\n" "\n" " :arg key: The identifier for the collection member.\n" " :type key: str\n" " :arg default: Optional argument for the value to return if\n" " *key* is not found.\n" " :type default: Any\n") | |
| static PyObject * | pyrna_prop_collection_get (BPy_PropertyRNA *self, PyObject *args) |
| PyDoc_STRVAR (pyrna_prop_collection_find_doc, ".. method:: find(key)\n" "\n" " Returns the index of a key in a collection or -1 when not found\n" " (matches Python's string find function of the same name).\n" "\n" " :arg key: The identifier for the collection member.\n" " :type key: str\n" " :return: index of the key.\n" " :rtype: int\n") | |
| static PyObject * | pyrna_prop_collection_find (BPy_PropertyRNA *self, PyObject *key_ob) |
| static bool | foreach_attr_type (BPy_PropertyRNA *self, const char *attr, RawPropertyType *r_raw_type, int *r_attr_tot, bool *r_attr_signed, bool *r_is_empty) |
| static int | foreach_parse_args (BPy_PropertyRNA *self, PyObject *args, const char *function_name, const char **r_attr, PyObject **r_seq, int *r_tot, size_t *r_size, RawPropertyType *r_raw_type, int *r_attr_tot, bool *r_attr_signed) |
| static bool | foreach_compat_buffer (RawPropertyType raw_type, int attr_signed, const char *formatformat) |
| static PyObject * | foreach_getset (BPy_PropertyRNA *self, PyObject *args, int set) |
| PyDoc_STRVAR (pyrna_prop_collection_foreach_get_doc, ".. method:: foreach_get(attr, seq)\n" "\n" " This is a function to give fast access to attributes within a collection.\n") | |
| static PyObject * | pyrna_prop_collection_foreach_get (BPy_PropertyRNA *self, PyObject *args) |
| PyDoc_STRVAR (pyrna_prop_collection_foreach_set_doc, ".. method:: foreach_set(attr, seq)\n" "\n" " This is a function to give fast access to attributes within a collection.\n") | |
| static PyObject * | pyrna_prop_collection_foreach_set (BPy_PropertyRNA *self, PyObject *args) |
| static PyObject * | pyprop_array_foreach_getset (BPy_PropertyArrayRNA *self, PyObject *args, const bool do_set) |
| PyDoc_STRVAR (pyrna_prop_array_foreach_get_doc, ".. method:: foreach_get(seq)\n" "\n" " This is a function to give fast access to array data.\n") | |
| static PyObject * | pyrna_prop_array_foreach_get (BPy_PropertyArrayRNA *self, PyObject *args) |
| PyDoc_STRVAR (pyrna_prop_array_foreach_set_doc, ".. method:: foreach_set(seq)\n" "\n" " This is a function to give fast access to array data.\n") | |
| static PyObject * | pyrna_prop_array_foreach_set (BPy_PropertyArrayRNA *self, PyObject *args) |
| static PyObject * | pyrna_prop_array_iter (BPy_PropertyArrayRNA *self) |
| static PyObject * | pyrna_param_to_py (PointerRNA *ptr, PropertyRNA *prop, void *data) |
| static PyObject * | small_dict_get_item_string (PyObject *dict, const char *key_lookup) |
| static void | pyrna_func_error_prefix (BPy_FunctionRNA *self, PropertyRNA *parm, const int parm_index, char *error, const size_t error_size) |
| static PyObject * | pyrna_func_call (BPy_FunctionRNA *self, PyObject *args, PyObject *kw) |
| static void | pyrna_subtype_set_rna (PyObject *newclass, StructRNA *srna) |
| static PyObject * | pyrna_srna_PyBase (StructRNA *srna) |
| static PyObject * | pyrna_srna_ExternalType (StructRNA *srna) |
| PyObject * | pyrna_struct_CreatePyObject (PointerRNA *ptr) |
| PyObject * | pyrna_struct_CreatePyObject_with_primitive_support (PointerRNA *ptr) |
| PyObject * | pyrna_prop_CreatePyObject (PointerRNA *ptr, PropertyRNA *prop) |
| PyObject * | pyrna_id_CreatePyObject (ID *id) |
| bool | pyrna_id_FromPyObject (PyObject *obj, ID **id) |
| bool | pyrna_id_CheckPyObject (PyObject *obj) |
| void | BPY_rna_init () |
| void | BPY_rna_exit () |
| PyObject * | BPY_rna_module () |
| void | BPY_update_rna_module () |
RNA Class Registration: Deferred | |
| static int | deferred_register_prop (StructRNA *srna, PyObject *key, PyObject *item) |
| static int | pyrna_deferred_register_class_from_type_hints (StructRNA *srna, PyTypeObject *py_class) |
| static int | pyrna_deferred_register_props (StructRNA *srna, PyObject *class_dict) |
| static int | pyrna_deferred_register_class_recursive (StructRNA *srna, PyTypeObject *py_class) |
| int | pyrna_deferred_register_class (StructRNA *srna, PyTypeObject *py_class) |
| static int | rna_function_register_arg_count (FunctionRNA *func, int *min_count) |
RNA Struct Access: #StructRNA | |
Utilities for accessing & creating StructRNA on demand. | |
| StructRNA * | pyrna_struct_as_srna (PyObject *self, const bool parent, const char *error_prefix) |
| const PointerRNA * | pyrna_struct_as_ptr (PyObject *py_obj, const StructRNA *srna) |
| const PointerRNA * | pyrna_struct_as_ptr_or_null (PyObject *py_obj, const StructRNA *srna) |
| int | pyrna_struct_as_ptr_parse (PyObject *o, void *p) |
| int | pyrna_struct_as_ptr_or_null_parse (PyObject *o, void *p) |
| StructRNA * | srna_from_self (PyObject *self, const char *error_prefix) |
RNA Class Registration: Utilities | |
Mainly helpers for register_class & unregister_class. | |
| static int | bpy_class_validate_recursive (PointerRNA *dummy_ptr, StructRNA *srna, void *py_data, bool *have_function) |
| static int | bpy_class_validate (PointerRNA *dummy_ptr, void *py_data, bool *have_function) |
| static int | bpy_class_call (bContext *C, PointerRNA *ptr, FunctionRNA *func, ParameterList *parms) |
| static void | bpy_class_free_ex (PyObject *self, bool decref) |
| static void | bpy_class_free (void *pyob_ptr) |
| static PyTypeObject * | bpy_class_check_any_bases_registered (PyTypeObject *cls) |
| static PyTypeObject * | bpy_class_check_any_subclasses_registered (PyTypeObject *cls) |
| void | pyrna_alloc_types () |
| void | BPY_free_srna_pytype (StructRNA *srna) |
RNA Support for extended via the C-API | |
| void | pyrna_struct_type_extend_capi (StructRNA *srna, PyMethodDef *method, PyGetSetDef *getset) |
RNA Class Register Method | |
| #define | BPY_TYPEDEF_REGISTERABLE_DOC |
| PyMethodDef | meth_bpy_register_class |
| static PyObject * | pyrna_register_class (PyObject *self, PyObject *py_class) |
| PyDoc_STRVAR (pyrna_register_class_doc, ".. function:: register_class(cls)\n" "\n" " Register a subclass of a Blender type class.\n" "\n" " :arg cls: Registerable Blender class type.\n" " :type cls: " BPY_TYPEDEF_REGISTERABLE_DOC "\n" "\n" " :raises ValueError:\n" " if the class is not a subclass of a registerable blender class.\n" "\n" " .. note::\n" "\n" " If the class has a *register* class method it will be called\n" " before registration.\n") | |
| static int | pyrna_srna_contains_pointer_prop_srna (StructRNA *srna_props, StructRNA *srna, const char **r_prop_identifier) |
BPY RNA Struct Type | |
These BPy_StructRNA objects should be created the standard way (calling their type objects using #PyObject_CallOneArg or similar). One and only one arg is expected currently. This special handling allows to construct an object from a python-defined derived type of bpy_struct, using an existing base struct object as source of data. It also allows internal bpy_rna.cc code to pass the private #BPy_RNANoInit_object token to create property objects without initializing them, which avoids double-initialization from functions like pyrna_struct_CreatePyObject etc.
>>> class MyObSubclass(bpy.types.Object):
... def test_func(self):
... print(100)
...
>>> myob = MyObSubclass(bpy.context.object)
>>> myob.test_func()
100
| |
| PyTypeObject | pyrna_struct_Type |
| static PyObject * | pyrna_struct_new (PyTypeObject *type, PyObject *args, PyObject *) |
| static int | pyrna_struct_init (PyObject *self, PyObject *args, PyObject *) |
| static void | pyrna_struct_dealloc (PyObject *self) |
BPY RNA Property Types | |
These BPy_PropertyRNA objects should be created the standard way (calling their type objects using #PyObject_CallOneArg or similar). One and only one arg is expected currently. This special handling allows to construct an object from a python-defined derived type of bpy_property, using an existing base property object as source of data. It also allows internal bpy_rna.cc code to pass the private #BPy_RNANoInit_object token to create property objects without initializing them, which avoids double-initialization from functions like pyrna_prop_CreatePyObject etc.
TODO Add python code example of using this overriding feature. | |
| PyTypeObject | pyrna_prop_Type |
| PyTypeObject | pyrna_prop_array_Type |
| PyTypeObject | pyrna_prop_collection_Type |
| static PyTypeObject | pyrna_prop_collection_idprop_Type |
| static PyTypeObject | pyrna_prop_collection_iter_Type |
| static PyObject * | pyrna_prop_collection_iter (PyObject *self) |
| static PyObject * | pyrna_property_new (PyTypeObject *type, PyObject *args, PyObject *) |
| static int | pyrna_property_init (PyObject *self, PyObject *args, PyObject *) |
| static void | pyrna_property_dealloc (PyObject *self) |
| static int | pyrna_property_array_init (PyObject *self, PyObject *args, PyObject *) |
| static PyObject * | pyrna_prop_collection_iter_new (PyTypeObject *type, PyObject *, PyObject *) |
| static int | pyrna_prop_collection_iter_init (PyObject *self, PyObject *, PyObject *) |
| static void | pyrna_prop_collection_iter_dealloc (PyObject *self) |
| static PyObject * | pyrna_prop_collection_iter_next (PyObject *self) |
| static PyObject * | pyrna_prop_collection_iter_CreatePyObject (PointerRNA *ptr, PropertyRNA *prop) |
BPY RNA Function | |
| PyTypeObject | pyrna_func_Type |
| static PyObject * | pyrna_function_new (PyTypeObject *type, PyObject *args, PyObject *) |
| static int | pyrna_function_init (PyObject *self, PyObject *args, PyObject *) |
| static void | pyrna_function_dealloc (PyObject *self) |
RNA Types Module <tt>bpy.types</tt> | |
| static PyMethodDef | bpy_types_module_methods [] |
| static PyModuleDef | bpy_types_module_def |
| static PyObject * | bpy_types_module_getattro (PyObject *self, PyObject *pyname) |
| static PyObject * | bpy_types_module_dir (PyObject *self) |
| static void | bpy_types_module_free (void *self) |
| PyDoc_STRVAR (bpy_types_module_doc, "Access to internal Blender types") | |
| PyObject * | BPY_rna_types () |
| void | BPY_rna_types_finalize_external_types (PyObject *submodule) |
RNA Class Unregister Method | |
| PyMethodDef | meth_bpy_unregister_class |
| static PyObject * | pyrna_unregister_class (PyObject *self, PyObject *py_class) |
| PyDoc_STRVAR (pyrna_unregister_class_doc, ".. function:: unregister_class(cls)\n" "\n" " Unload the Python class from blender.\n" "\n" " :arg cls: Blender type class, \n" " see :mod:`bpy.utils.register_class` for classes which can \n" " be registered.\n" " :type cls: " BPY_TYPEDEF_REGISTERABLE_DOC "\n" "\n" " .. note::\n" "\n" " If the class has an *unregister* class method it will be called\n" " before unregistering.\n") | |
Exported Methods | |
| PyMethodDef | meth_bpy_owner_id_get |
| PyMethodDef | meth_bpy_owner_id_set |
| static PyObject * | pyrna_bl_owner_id_get (PyObject *) |
| static PyObject * | pyrna_bl_owner_id_set (PyObject *, PyObject *value) |
This file is the main interface between Python and Blender's data API (RNA), exposing RNA to Python so blender data can be accessed in a Python like way.
The two main types are BPy_StructRNA and BPy_PropertyRNA - the base classes for most of the data Python accesses in blender.
Definition in file bpy_rna.cc.
| #define BPY_DOC_ID_PROP_TYPE_NOTE |
Definition at line 138 of file bpy_rna.cc.
Referenced by PyDoc_STRVAR(), PyDoc_STRVAR(), PyDoc_STRVAR(), PyDoc_STRVAR(), and PyDoc_STRVAR().
| #define BPY_REPLACEMENT_STRING | ( | rna_attr, | |
| py_attr ) |
Referenced by bpy_class_validate_recursive().
| #define BPY_TYPEDEF_REGISTERABLE_DOC |
Definition at line 9958 of file bpy_rna.cc.
Referenced by PyDoc_STRVAR(), and PyDoc_STRVAR().
| #define MATHUTILS_CB_SUBTYPE_COLOR 3 |
Definition at line 460 of file bpy_rna.cc.
Referenced by pyrna_math_object_from_array().
| #define MATHUTILS_CB_SUBTYPE_EUL 0 |
Definition at line 457 of file bpy_rna.cc.
Referenced by mathutils_rna_vector_get(), mathutils_rna_vector_set(), and pyrna_math_object_from_array().
| #define MATHUTILS_CB_SUBTYPE_QUAT 2 |
Definition at line 459 of file bpy_rna.cc.
Referenced by pyrna_math_object_from_array().
| #define MATHUTILS_CB_SUBTYPE_VEC 1 |
Definition at line 458 of file bpy_rna.cc.
Referenced by pyrna_math_object_from_array().
| #define PROP_ALL_VECTOR_SUBTYPES |
Note that PROP_NONE is included as a vector subtype. this is because it is handy to have x/y access to fcurve keyframes and other fixed size float arrays of length 2-4.
Definition at line 688 of file bpy_rna.cc.
Referenced by pyrna_math_object_from_array(), and pyrna_param_to_py().
| #define PYRNA_PROP_COLLECTION_ABS_INDEX | ( | ret_err | ) |
Definition at line 2265 of file bpy_rna.cc.
Referenced by pyrna_prop_collection_ass_subscript_int(), and pyrna_prop_collection_subscript_int().
| #define USE_MATHUTILS |
Definition at line 76 of file bpy_rna.cc.
| #define USE_PEDANTIC_WRITE |
Definition at line 75 of file bpy_rna.cc.
| #define USE_POSTPONED_ANNOTATIONS |
This must be enabled to support Python 3.10's postponed annotations, from __future__ import annotations.
This has the disadvantage of evaluating strings at run-time, in the future we might be able to reinstate the older, more efficient logic using descriptors, see: pep-0649
Definition at line 86 of file bpy_rna.cc.
| #define USE_STRING_COERCE |
Definition at line 77 of file bpy_rna.cc.
|
static |
Definition at line 9439 of file bpy_rna.cc.
References bpy_class_call(), bpy_context_clear(), BPY_context_get(), bpy_context_set(), BPy_errors_to_report(), BPY_LOG_RNA, C, CLOG_WARN, CTX_wm_manager(), CTX_wm_reports(), ParameterIterator::data, PointerRNA::data, false, FUNC_ALLOW_WRITE, FUNC_NO_SELF, FUNC_USE_SELF_TYPE, i, ParameterIterator::parm, PARM_OUTPUT, PyC_Err_Format_Prefix(), pyrna_param_to_py(), pyrna_py_to_prop(), pyrna_struct_CreatePyObject(), reports, wmOperator::reports, ret, rna_disallow_writes, RNA_function_flag(), RNA_function_identifier(), RNA_parameter_flag(), RNA_parameter_list_begin(), RNA_parameter_list_end(), RNA_parameter_list_next(), RNA_pointer_create_discrete(), RNA_struct_identifier(), RNA_struct_instance(), RNA_struct_is_a(), RNA_struct_py_type_get(), true, PointerRNA::type, and ParameterIterator::valid.
Referenced by bpy_class_call(), and pyrna_register_class().
|
static |
Definition at line 9843 of file bpy_rna.cc.
References BLI_assert, bpy_class_check_any_bases_registered(), bpy_intern_str_bl_rna, StructRNA::flag, i, and STRUCT_RUNTIME.
Referenced by bpy_class_check_any_bases_registered(), and pyrna_register_class().
|
static |
Definition at line 9873 of file bpy_rna.cc.
References BLI_assert, bpy_class_check_any_subclasses_registered(), bpy_intern_str_bl_rna, StructRNA::flag, and STRUCT_RUNTIME.
Referenced by bpy_class_check_any_subclasses_registered(), and pyrna_register_class().
|
static |
Definition at line 9831 of file bpy_rna.cc.
References bpy_class_free(), and bpy_class_free_ex().
Referenced by bpy_class_free(), and pyrna_register_class().
|
static |
| decref | When true, decrease the reference. |
Definition at line 9786 of file bpy_rna.cc.
References bpy_class_free_ex(), bpy_intern_str_bl_rna, G, G_DEBUG_PYTHON, and PyC_ObSpit().
Referenced by bpy_class_free(), bpy_class_free_ex(), and BPY_free_srna_pytype().
|
static |
Definition at line 9433 of file bpy_rna.cc.
References bpy_class_validate(), bpy_class_validate_recursive(), and PointerRNA::type.
Referenced by bpy_class_validate(), and pyrna_register_class().
|
static |
Definition at line 9230 of file bpy_rna.cc.
References bpy_class_validate_recursive(), bpy_intern_str___doc__, bpy_intern_str___name__, BPY_REPLACEMENT_STRING, FUNC_NO_SELF, FUNC_REGISTER, FUNC_REGISTER_OPTIONAL, FUNC_USE_SELF_TYPE, i, LISTBASE_FOREACH, PROP_REGISTER, PROP_REGISTER_OPTIONAL, pyrna_py_to_prop(), RNA_function_flag(), RNA_function_identifier(), rna_function_register_arg_count(), RNA_property_flag(), RNA_property_identifier(), RNA_struct_base(), RNA_struct_identifier(), RNA_struct_py_type_get(), RNA_struct_type_functions(), and RNA_struct_type_properties().
Referenced by bpy_class_validate(), and bpy_class_validate_recursive().
| void BPY_free_srna_pytype | ( | StructRNA * | srna | ) |
Free (actually dereference) the Python type object representing the given #StrucRNA type, if it is defined.
Definition at line 9942 of file bpy_rna.cc.
References bpy_class_free_ex(), BPY_free_srna_pytype(), RNA_struct_py_type_get(), and RNA_struct_py_type_set().
Referenced by BPY_free_srna_pytype(), RNA_bpy_exit(), and WM_operatortype_remove_ptr().
| void BPY_id_release | ( | ID * | id | ) |
Definition at line 344 of file bpy_rna.cc.
References BPY_id_release().
Referenced by BKE_libblock_free_data_py(), and BPY_id_release().
| void BPY_rna_exit | ( | ) |
Definition at line 8570 of file bpy_rna.cc.
References BLI_ghash_free(), BLI_ghash_len(), BLI_ghashIterator_getKey(), BPY_rna_exit(), GHASH_ITER, ID::name, and printf.
Referenced by BPY_python_end(), and BPY_rna_exit().
| void BPY_rna_init | ( | ) |
Definition at line 8517 of file bpy_rna.cc.
References BLI_assert, BLI_ghash_ptr_new(), BPY_rna_init(), Mathutils_RegisterCallback(), mathutils_rna_array_cb, mathutils_rna_array_cb_index, mathutils_rna_matrix_cb, mathutils_rna_matrix_cb_index, pyrna_func_Type, pyrna_prop_array_Type, pyrna_prop_collection_idprop_Type, pyrna_prop_collection_iter_Type, pyrna_prop_collection_Type, pyrna_prop_Type, pyrna_struct_meta_idprop_Type, and pyrna_struct_Type.
Referenced by BPY_python_start(), and BPY_rna_init().
| PyObject * BPY_rna_module | ( | ) |
Definition at line 8593 of file bpy_rna.cc.
References BPY_rna_module(), G_MAIN, BPy_StructRNA::ptr, pyrna_struct_CreatePyObject(), RNA_main_pointer_create(), and rna_module_ptr.
Referenced by BPy_init_modules(), BPY_modules_update(), and BPY_rna_module().
| PyObject * BPY_rna_types | ( | ) |
Definition at line 8758 of file bpy_rna.cc.
References ARRAY_SIZE, BPY_rna_types(), bpy_types_module_def, i, pyrna_func_Type, pyrna_prop_array_Type, pyrna_prop_collection_idprop_Type, pyrna_prop_collection_Type, pyrna_prop_Type, pyrna_struct_meta_idprop_Type, pyrna_struct_Type, RNA_blender_rna_pointer_create(), RNA_struct_find_property(), and state.
Referenced by BPy_init_modules(), BPY_modules_update(), and BPY_rna_types().
| void BPY_rna_types_finalize_external_types | ( | PyObject * | submodule | ) |
Definition at line 8788 of file bpy_rna.cc.
References BLI_assert, BLI_assert_msg, BPY_LOG_RNA, BPY_rna_types_finalize_external_types(), bpy_types_dict, CLOG_WARN, pyrna_struct_Type, pyrna_subtype_set_rna(), RNA_property_collection_lookup_string(), RNA_struct_py_type_get(), srna_from_ptr(), state, and STREQ.
Referenced by BPy_init_modules(), and BPY_rna_types_finalize_external_types().
|
static |
Definition at line 8682 of file bpy_rna.cc.
References BLI_assert, bpy_types_module_dir(), ret, RNA_PROP_BEGIN, RNA_PROP_END, RNA_struct_identifier(), and state.
Referenced by bpy_types_module_dir().
|
static |
Definition at line 8729 of file bpy_rna.cc.
References bpy_types_module_free(), and state.
Referenced by bpy_types_module_free().
|
static |
Definition at line 8646 of file bpy_rna.cc.
References BLI_assert, bpy_types_module_getattro(), pyrna_struct_Subtype(), ret, RNA_property_collection_lookup_string(), and state.
Referenced by bpy_types_module_getattro().
| void BPY_update_rna_module | ( | ) |
Definition at line 8605 of file bpy_rna.cc.
References BPY_update_rna_module(), PointerRNA::data, G_MAIN, RNA_main_pointer_create(), and rna_module_ptr.
Referenced by BPY_driver_exec(), BPY_modules_update(), and BPY_update_rna_module().
|
static |
Definition at line 8971 of file bpy_rna.cc.
References BLI_assert, BPy_CollectionProperty(), bpy_intern_str_attr, BPy_PointerProperty(), BPy_PropDeferred_CheckTypeExact, deferred_register_prop(), ELEM, RNA_struct_identifier(), RNA_struct_idprops_contains_datablock(), RNA_struct_idprops_datablock_allowed(), and srna_from_self().
Referenced by deferred_register_prop(), pyrna_deferred_register_class_from_type_hints(), pyrna_deferred_register_props(), and pyrna_struct_meta_idprop_setattro().
|
static |
Definition at line 5486 of file bpy_rna.cc.
References foreach_attr_type(), BPy_PropertyRNA::prop, PROP_RAW_UNSET, PROP_UNSIGNED, BPy_PropertyRNA::ptr, RNA_PROP_BEGIN, RNA_PROP_END, RNA_property_array_length(), RNA_property_raw_type(), RNA_property_subtype(), and RNA_struct_find_property().
Referenced by foreach_attr_type(), and foreach_parse_args().
|
static |
Definition at line 5628 of file bpy_rna.cc.
References foreach_compat_buffer(), PROP_RAW_BOOLEAN, PROP_RAW_CHAR, PROP_RAW_DOUBLE, PROP_RAW_FLOAT, PROP_RAW_INT, PROP_RAW_INT64, PROP_RAW_INT8, PROP_RAW_SHORT, PROP_RAW_UINT16, PROP_RAW_UINT64, PROP_RAW_UINT8, PROP_RAW_UNSET, and true.
Referenced by foreach_compat_buffer(), and foreach_getset().
|
static |
Definition at line 5681 of file bpy_rna.cc.
References BLI_assert_msg, BPY_context_get(), foreach_compat_buffer(), foreach_getset(), foreach_parse_args(), i, BPy_PropertyRNA::prop, PROP_RAW_BOOLEAN, PROP_RAW_CHAR, PROP_RAW_DOUBLE, PROP_RAW_FLOAT, PROP_RAW_INT, PROP_RAW_INT64, PROP_RAW_INT8, PROP_RAW_SHORT, PROP_RAW_UINT16, PROP_RAW_UINT64, PROP_RAW_UINT8, PROP_RAW_UNSET, BPy_PropertyRNA::ptr, PyC_Long_AsBool(), PyC_Long_AsI16(), PyC_Long_AsI8(), PyC_Long_AsU16(), PyC_Long_AsU64(), PyC_Long_AsU8(), RNA_property_collection_raw_get(), RNA_property_collection_raw_set(), RNA_property_update(), and size().
Referenced by foreach_getset(), pyrna_prop_collection_foreach_get(), and pyrna_prop_collection_foreach_set().
|
static |
Definition at line 5521 of file bpy_rna.cc.
References foreach_attr_type(), foreach_parse_args(), BPy_PropertyRNA::prop, PROP_COLLECTION, PROP_RAW_UNSET, BPy_PropertyRNA::ptr, RNA_property_array_length(), RNA_property_collection_length(), RNA_property_identifier(), RNA_property_type(), RNA_raw_type_sizeof(), and RNA_struct_identifier().
Referenced by foreach_getset(), and foreach_parse_args().
|
static |
Definition at line 462 of file bpy_rna.cc.
References mathutils_rna_generic_check(), BPy_PropertyRNA::prop, and PYRNA_PROP_CHECK_INT.
Referenced by mathutils_rna_generic_check().
|
static |
Definition at line 607 of file bpy_rna.cc.
References mathutils_rna_matrix_get(), BPy_PropertyRNA::prop, BPy_PropertyRNA::ptr, PYRNA_PROP_CHECK_INT, and RNA_property_float_get_array().
Referenced by mathutils_rna_matrix_get().
|
static |
Definition at line 621 of file bpy_rna.cc.
References BPY_context_get(), mathutils_rna_matrix_set(), BPy_PropertyRNA::prop, BPy_PropertyRNA::ptr, PYRNA_PROP_CHECK_INT, rna_disallow_writes, rna_id_write_error(), RNA_property_editable_flag(), RNA_property_float_set_array(), RNA_property_identifier(), RNA_property_update(), RNA_property_update_check(), and RNA_struct_identifier().
Referenced by mathutils_rna_matrix_set().
|
static |
Definition at line 471 of file bpy_rna.cc.
References MATHUTILS_CB_SUBTYPE_EUL, mathutils_rna_vector_get(), EulerObject::order, BPy_PropertyRNA::prop, BPy_PropertyRNA::ptr, PYRNA_PROP_CHECK_INT, pyrna_rotation_euler_order_get(), and RNA_property_float_get_array().
Referenced by mathutils_rna_vector_get().
|
static |
Definition at line 548 of file bpy_rna.cc.
References mathutils_rna_vector_get_index(), BPy_PropertyRNA::prop, BPy_PropertyRNA::ptr, PYRNA_PROP_CHECK_INT, and RNA_property_float_get_index().
Referenced by mathutils_rna_vector_get_index().
|
static |
Definition at line 493 of file bpy_rna.cc.
References BPY_context_get(), CLAMP, FLT_MAX, i, len(), MATHUTILS_CB_SUBTYPE_EUL, mathutils_rna_vector_set(), max, min, EulerObject::order, BPy_PropertyRNA::prop, BPy_PropertyRNA::ptr, PYRNA_PROP_CHECK_INT, pyrna_rotation_euler_order_get(), rna_disallow_writes, rna_id_write_error(), RNA_property_array_length(), RNA_property_editable_flag(), RNA_property_enum_set(), RNA_property_float_range(), RNA_property_float_set_array(), RNA_property_identifier(), RNA_property_update(), RNA_property_update_check(), and RNA_struct_identifier().
Referenced by mathutils_rna_vector_set().
|
static |
Definition at line 562 of file bpy_rna.cc.
References BPY_context_get(), mathutils_rna_vector_set_index(), BPy_PropertyRNA::prop, BPy_PropertyRNA::ptr, PYRNA_PROP_CHECK_INT, rna_disallow_writes, rna_id_write_error(), RNA_property_editable_flag(), RNA_property_float_clamp(), RNA_property_float_set_index(), RNA_property_identifier(), RNA_property_update(), RNA_property_update_check(), and RNA_struct_identifier().
Referenced by mathutils_rna_vector_set_index().
|
static |
Definition at line 3269 of file bpy_rna.cc.
References len(), prop_subscript_ass_array_int(), pyrna_prop_array_length(), PYRNA_PROP_CHECK_INT, and pyrna_py_to_prop_array_index().
Referenced by prop_subscript_ass_array_int(), and pyrna_prop_array_ass_subscript().
|
static |
Definition at line 3121 of file bpy_rna.cc.
References BLI_assert, i, length(), PROP_BOOLEAN, PROP_FLOAT, PROP_INT, prop_subscript_ass_array_slice(), prop_subscript_ass_array_slice__bool_recursive(), prop_subscript_ass_array_slice__float_recursive(), prop_subscript_ass_array_slice__int_recursive(), PYRNA_STACK_ARRAY, ret, RNA_property_array_dimension(), RNA_property_array_length(), RNA_property_boolean_get_array(), RNA_property_boolean_set_array(), RNA_property_float_get_array(), RNA_property_float_range(), RNA_property_float_set_array(), RNA_property_int_get_array(), RNA_property_int_range(), RNA_property_int_set_array(), RNA_property_type(), and stop.
Referenced by prop_subscript_ass_array_slice(), and pyrna_prop_array_ass_subscript().
|
static |
Helpers for prop_subscript_ass_array_slice
Definition at line 3003 of file bpy_rna.cc.
References length(), and prop_subscript_ass_array_slice__as_seq_fast().
Referenced by prop_subscript_ass_array_slice__as_seq_fast(), prop_subscript_ass_array_slice__bool_recursive(), prop_subscript_ass_array_slice__float_recursive(), and prop_subscript_ass_array_slice__int_recursive().
|
static |
Definition at line 3088 of file bpy_rna.cc.
References BLI_assert, i, length(), prop_subscript_ass_array_slice__as_seq_fast(), prop_subscript_ass_array_slice__bool_recursive(), UNLIKELY, and v.
Referenced by prop_subscript_ass_array_slice(), and prop_subscript_ass_array_slice__bool_recursive().
|
static |
Definition at line 3024 of file bpy_rna.cc.
References BLI_assert, CLAMP, i, length(), max, min, prop_subscript_ass_array_slice__as_seq_fast(), prop_subscript_ass_array_slice__float_recursive(), UNLIKELY, and v.
Referenced by prop_subscript_ass_array_slice(), and prop_subscript_ass_array_slice__float_recursive().
|
static |
Definition at line 3056 of file bpy_rna.cc.
References BLI_assert, CLAMP, i, length(), max, min, prop_subscript_ass_array_slice__as_seq_fast(), prop_subscript_ass_array_slice__int_recursive(), UNLIKELY, and v.
Referenced by prop_subscript_ass_array_slice(), and prop_subscript_ass_array_slice__int_recursive().
| PyDoc_STRVAR | ( | bpy_types_module_doc | , |
| "Access to internal Blender types" | ) |
References PyDoc_STRVAR().
| PyDoc_STRVAR | ( | pyrna_prop_array_foreach_get_doc | , |
| ".. method:: foreach_get(seq)\n" "\n" " This is a function to give fast access to array data.\n" | ) |
References PyDoc_STRVAR().
| PyDoc_STRVAR | ( | pyrna_prop_array_foreach_set_doc | , |
| ".. method:: foreach_set(seq)\n" "\n" " This is a function to give fast access to array data.\n" | ) |
References PyDoc_STRVAR().
| PyDoc_STRVAR | ( | pyrna_prop_as_bytes_doc | , |
| ".. method:: as_bytes()\n" "\n" " Returns this string property as a byte rather than a Python string.\n" "\n" " :return: The string as bytes.\n" " :rtype: bytes\n" | ) |
References PyDoc_STRVAR().
| PyDoc_STRVAR | ( | pyrna_prop_collection_find_doc | , |
| ".. method:: find(key)\n" "\n" " Returns the index of a key in a collection or -1 when not found\n" " (matches Python's string find function of the same name).\n" "\n" " :arg key: The identifier for the collection member.\n" " :type key: str\n" " :return: index of the key.\n" " :rtype: int\n" | ) |
References PyDoc_STRVAR().
| PyDoc_STRVAR | ( | pyrna_prop_collection_foreach_get_doc | , |
| ".. method:: foreach_get(attr, seq)\n" "\n" " This is a function to give fast access to attributes within a collection.\n" | ) |
References PyDoc_STRVAR().
| PyDoc_STRVAR | ( | pyrna_prop_collection_foreach_set_doc | , |
| ".. method:: foreach_set(attr, seq)\n" "\n" " This is a function to give fast access to attributes within a collection.\n" | ) |
References PyDoc_STRVAR().
| PyDoc_STRVAR | ( | pyrna_prop_collection_get_doc | , |
| ".. method:: get(key, default=None)\n" "\n" " Returns the value of the item assigned to key or default when not found\n" " (matches Python's dictionary function of the same name).\n" "\n" " :arg key: The identifier for the collection member.\n" " :type key: str\n" " :arg default: Optional argument for the value to return if\n" " *key* is not found.\n" " :type default: Any\n" | ) |
References PyDoc_STRVAR().
| PyDoc_STRVAR | ( | pyrna_prop_collection_idprop_add_doc | , |
| ".. method:: add()\n" "\n" " This is a function to add a new item to a collection.\n" "\n" " :return: A newly created item.\n" " :rtype: Any\n" | ) |
Odd case, we need to be able return a Python method from a #PyTypeObject.tp_getset.
References PyDoc_STRVAR().
| PyDoc_STRVAR | ( | pyrna_prop_collection_idprop_clear_doc | , |
| ".. method:: clear()\n" "\n" " This is a function to remove all items from a collection.\n" | ) |
References PyDoc_STRVAR().
| PyDoc_STRVAR | ( | pyrna_prop_collection_idprop_move_doc | , |
| ".. method:: move(src_index, dst_index)\n" "\n" " This is a function to move an item in a collection.\n" "\n" " :arg src_index: Source item index.\n" " :type src_index: int\n" " :arg dst_index: Destination item index.\n" " :type dst_index: int\n" | ) |
References PyDoc_STRVAR().
| PyDoc_STRVAR | ( | pyrna_prop_collection_idprop_remove_doc | , |
| ".. method:: remove(index)\n" "\n" " This is a function to remove an item from a collection.\n" "\n" " :arg index: Index of the item to be removed.\n" " :type index: int\n" | ) |
References PyDoc_STRVAR().
| PyDoc_STRVAR | ( | pyrna_prop_collection_items_doc | , |
| ".. method:: items()\n" "\n" " Return the identifiers of collection members\n" " (matching Python's dict.items() functionality).\n" "\n" " :return: (key, value) pairs for each member of this collection.\n" " :rtype: list]\n" | [tuple[str, :class:`bpy.types.bpy_struct`] ) |
References PyDoc_STRVAR().
| PyDoc_STRVAR | ( | pyrna_prop_collection_keys_doc | , |
| ".. method:: keys()\n" "\n" " Return the identifiers of collection members\n" " (matching Python's dict.keys() functionality).\n" "\n" " :return: the identifiers for each member of this collection.\n" " :rtype: list\n" | [str] ) |
References PyDoc_STRVAR().
| PyDoc_STRVAR | ( | pyrna_prop_collection_values_doc | , |
| ".. method:: values()\n" "\n" " Return the values of collection\n" " (matching Python's dict.values() functionality).\n" "\n" " :return: The members of this collection.\n" " :rtype: list\n" | [:class:`bpy.types.bpy_struct`|None] ) |
References PyDoc_STRVAR().
| PyDoc_STRVAR | ( | pyrna_prop_path_from_id_doc | , |
| ".. method:: path_from_id()\n" "\n" " Returns the data path from the ID to this property (string).\n" "\n" " :return: The path from :class:`bpy.types.bpy_struct.id_data` to this property.\n" " :rtype: str\n" | ) |
References PyDoc_STRVAR().
| PyDoc_STRVAR | ( | pyrna_prop_update_doc | , |
| ".. method:: update()\n" "\n" " Execute the properties update callback.\n" "\n" " .. note::\n" " This is called when assigning a | property, | ||
| \n" " however in rare cases it 's useful to call explicitly.\n" | ) |
References PyDoc_STRVAR().
| PyDoc_STRVAR | ( | pyrna_register_class_doc | , |
| ".. function:: register_class(cls)\n" "\n" " Register a subclass of a Blender type class.\n" "\n" " :arg cls: Registerable Blender class type.\n" " :type cls: " BPY_TYPEDEF_REGISTERABLE_DOC "\n" "\n" " :raises ValueError:\n" " if the class is not a subclass of a registerable blender class.\n" "\n" " .. note::\n" "\n" " If the class has a *register* class method it will be called\n" " before registration.\n" | ) |
NOTE(@ideasman42): There is currently a bug where moving the registration of a Python class does not properly manage reference-counts from the Python class. As the srna owns the Python class this should not be so tricky, but changing the references as you'd expect when changing ownership crashes blender on exit so I had to comment out the #Py_DECREF. This is not so bad because the leak only happens when re-registering (continuously running SCRIPT_OT_reload). This should still be fixed.
References BPY_TYPEDEF_REGISTERABLE_DOC, and PyDoc_STRVAR().
| PyDoc_STRVAR | ( | pyrna_struct_as_pointer_doc | , |
| ".. method:: as_pointer()\n" "\n" " Returns the memory address which holds a pointer to Blender's internal data\n" "\n" " :return: int (memory address).\n" " :rtype: int\n" "\n" " .. note:: This is intended only for advanced script writers who need to\n" " pass blender data to their own C/Python modules.\n" | ) |
References PyDoc_STRVAR().
| PyDoc_STRVAR | ( | pyrna_struct_bl_rna_get_subclass_doc | , |
| ".. classmethod:: bl_rna_get_subclass(id, default=None, /)\n" "\n" " :arg id: The RNA type identifier.\n" " :type id: str\n" " :return: The RNA type or default when not found.\n" " :rtype: :class:`bpy.types.Struct` subclass\n" | ) |
References PyDoc_STRVAR().
| PyDoc_STRVAR | ( | pyrna_struct_bl_rna_get_subclass_py_doc | , |
| ".. classmethod:: bl_rna_get_subclass_py(id, default=None, /)\n" "\n" " :arg id: The RNA type identifier.\n" " :type id: str\n" " :return: The class or default when not found.\n" " :rtype: type\n" | ) |
References PyDoc_STRVAR().
| PyDoc_STRVAR | ( | pyrna_struct_get_ancestors_doc | , |
| ".. method:: rna_ancestors()\n" "\n" " Return the chain of data containing this | struct, | ||
| if known.\n" " The first item is the | roottypically an ID, | ||
| the last one is the immediate parent.\n" " May be empty.\n" "\n" " :return:a list of this object 's ancestors.\n" " :rtype:list\n" | [:class:`bpy.types.bpy_struct`] ) |
References PyDoc_STRVAR().
| PyDoc_STRVAR | ( | pyrna_struct_get_data_doc | , |
| "The data this property is | using, | ||
| *type *:class:`bpy.types.bpy_struct`" | ) |
References PyDoc_STRVAR().
| PyDoc_STRVAR | ( | pyrna_struct_get_doc | , |
| ".. method:: get(key, default=None, /)\n" "\n" " Returns the value of the custom property assigned to key or default\n" " when not found (matches Python's dictionary function of the same name).\n" "\n" " :arg key: The key associated with the custom property.\n" " :type key: str\n" " :arg default: Optional argument for the value to return if\n" " *key* is not found.\n" " :type default: Any\n" " :return: Custom property value or default.\n" " :rtype: Any\n" "\n" | BPY_DOC_ID_PROP_TYPE_NOTE ) |
References BPY_DOC_ID_PROP_TYPE_NOTE, and PyDoc_STRVAR().
| PyDoc_STRVAR | ( | pyrna_struct_get_id_data_doc | , |
| "The :class:`bpy.types.ID` object this datablock is from or | None, | ||
| (not available for " "all data types)\n" "\n" ":type::class:`bpy.types.ID` | , | ||
| (readonly)\n" | ) |
References PyDoc_STRVAR().
| PyDoc_STRVAR | ( | pyrna_struct_get_rna_type_doc | , |
| "The property type for introspection" | ) |
References PyDoc_STRVAR().
| PyDoc_STRVAR | ( | pyrna_struct_id_properties_clear_doc | , |
| ".. method:: id_properties_clear()\n" "\n" " :return: Remove the parent group for an RNA struct's custom IDProperties.\n" | ) |
References PyDoc_STRVAR().
| PyDoc_STRVAR | ( | pyrna_struct_id_properties_ensure_doc | , |
| ".. method:: id_properties_ensure()\n" "\n" " :return: the parent group for an RNA struct's custom IDProperties.\n" " :rtype: :class:`idprop.types.IDPropertyGroup`\n" | ) |
References PyDoc_STRVAR().
| PyDoc_STRVAR | ( | pyrna_struct_id_properties_ui_doc | , |
| ".. method:: id_properties_ui(key, /)\n" "\n" " :return: Return an object used to manage an IDProperty's UI data.\n" " :arg key: String name of the property.\n" " :type key: str.\n" " :rtype: :class:`bpy.types.IDPropertyUIManager`\n" | ) |
References PyDoc_STRVAR().
| PyDoc_STRVAR | ( | pyrna_struct_is_property_hidden_doc | , |
| ".. method:: is_property_hidden(property, /)\n" "\n" " Check if a property is hidden.\n" "\n" " :arg property: Property name.\n" " :type property: str\n" " :return: True when the property is hidden.\n" " :rtype: bool\n" | ) |
References PyDoc_STRVAR().
| PyDoc_STRVAR | ( | pyrna_struct_is_property_overridable_library_doc | , |
| ".. method:: is_property_overridable_library(property, /)\n" "\n" " Check if a property is overridable.\n" "\n" " :arg property: Property name.\n" " :type property: str\n" " :return: True when the property is overridable.\n" " :rtype: bool\n" | ) |
References PyDoc_STRVAR().
| PyDoc_STRVAR | ( | pyrna_struct_is_property_readonly_doc | , |
| ".. method:: is_property_readonly(property, /)\n" "\n" " Check if a property is readonly.\n" "\n" " :arg property: Property name.\n" " :type property: str\n" " :return: True when the property is readonly (not writable).\n" " :rtype: bool\n" | ) |
References PyDoc_STRVAR().
| PyDoc_STRVAR | ( | pyrna_struct_is_property_set_doc | , |
| ".. method:: is_property_set(property, /, *, ghost=True)\n" "\n" " Check if a property is | set, | ||
| use for testing operator properties.\n" "\n" " :arg property:Property name.\n" " :type property:str\n" " :arg ghost:Used for operators that re-run with previous settings.\n" " In this case the property is not marked as | set, | ||
| \n" " yet the value from the previous execution is used.\n" "\n" " In rare cases you may want to set this option to false.\n" "\n" " :type ghost:bool\n" " :return:True when the property has been set.\n" " :rtype:bool\n" | ) |
References PyDoc_STRVAR().
| PyDoc_STRVAR | ( | pyrna_struct_items_doc | , |
| ".. method:: items()\n" "\n" " Returns the items of this objects custom properties (matches Python's\n" " dictionary function of the same name).\n" "\n" " :return: custom property | key, | ||
| value pairs.\n" " :rtype::class:`idprop.types.IDPropertyGroupViewItems`\n" "\n" | BPY_DOC_ID_PROP_TYPE_NOTE ) |
References BPY_DOC_ID_PROP_TYPE_NOTE, and PyDoc_STRVAR().
| PyDoc_STRVAR | ( | pyrna_struct_keys_doc | , |
| ".. method:: keys()\n" "\n" " Returns the keys of this objects custom properties (matches Python's\n" " dictionary function of the same name).\n" "\n" " :return: custom property keys.\n" " :rtype: :class:`idprop.types.IDPropertyGroupViewKeys`\n" "\n" | BPY_DOC_ID_PROP_TYPE_NOTE ) |
References BPY_DOC_ID_PROP_TYPE_NOTE, and PyDoc_STRVAR().
| PyDoc_STRVAR | ( | pyrna_struct_path_from_id_doc | , |
| ".. method:: path_from_id(property=\"\", /)\n" "\n" " Returns the data path from the ID to this object (string).\n" "\n" " :arg property: Optional property name which can be used if the path is\n" " to a property of this object.\n" " :type property: str\n" " :return: The path from :class:`bpy.types.bpy_struct.id_data`\n" " to this struct and property (when given).\n" " :rtype: str\n" | ) |
References PyDoc_STRVAR().
| PyDoc_STRVAR | ( | pyrna_struct_path_resolve_doc | , |
| ".. method:: path_resolve(path, coerce=True, /)\n" "\n" " Returns the property from the | path, | ||
| raise an exception when not found.\n" "\n" " :arg path:path which this property resolves.\n" " :type path:str\n" " :arg coerce:optional | argument, | ||
| when | True, | ||
| the property will be converted\n" " into its Python representation.\n" " :type coerce:bool\n" " :return:Property value or property object.\n" " :rtype:Any|:class:`bpy.types.bpy_prop`\n" | ) |
References PyDoc_STRVAR().
| PyDoc_STRVAR | ( | pyrna_struct_pop_doc | , |
| ".. method:: pop(key, default=None, /)\n" "\n" " Remove and return the value of the custom property assigned to key or default\n" " when not found (matches Python's dictionary function of the same name).\n" "\n" " :arg key: The key associated with the custom property.\n" " :type key: str\n" " :arg default: Optional argument for the value to return if\n" " *key* is not found.\n" " :type default: Any\n" " :return: Custom property value or default.\n" " :rtype: Any\n" "\n" | BPY_DOC_ID_PROP_TYPE_NOTE ) |
References BPY_DOC_ID_PROP_TYPE_NOTE, and PyDoc_STRVAR().
| PyDoc_STRVAR | ( | pyrna_struct_property_overridable_library_set_doc | , |
| ".. method:: property_overridable_library_set(property, overridable, /)\n" "\n" " Define a property as overridable or not (only for custom properties!).\n" "\n" " :arg property: Property name.\n" " :type property: str\n" " :arg overridable: Overridable status to set.\n" " :type overridable: bool\n" " :return: True when the overridable status of the property was successfully set.\n" " :rtype: bool\n" | ) |
References PyDoc_STRVAR().
| PyDoc_STRVAR | ( | pyrna_struct_property_unset_doc | , |
| ".. method:: property_unset(property, /)\n" "\n" " Unset a | property, | ||
| will use default value afterward.\n" "\n" " :arg property:Property name.\n" " :type property:str\n" | ) |
References PyDoc_STRVAR().
| PyDoc_STRVAR | ( | pyrna_struct_type_recast_doc | , |
| ".. method:: type_recast()\n" "\n" " Return a new | instance, | ||
| this is needed because types\n" " such as textures can be changed at runtime.\n" "\n" " :return:a new instance of this object with the type initialized again.\n" " :rtype::class:`bpy.types.bpy_struct`\n" | ) |
References PyDoc_STRVAR().
| PyDoc_STRVAR | ( | pyrna_struct_values_doc | , |
| ".. method:: values()\n" "\n" " Returns the values of this objects custom properties (matches Python's\n" " dictionary function of the same name).\n" "\n" " :return: custom property values.\n" " :rtype: :class:`idprop.types.IDPropertyGroupViewValues`\n" "\n" | BPY_DOC_ID_PROP_TYPE_NOTE ) |
References BPY_DOC_ID_PROP_TYPE_NOTE, and PyDoc_STRVAR().
| PyDoc_STRVAR | ( | pyrna_unregister_class_doc | , |
| ".. function:: unregister_class(cls)\n" "\n" " Unload the Python class from blender.\n" "\n" " :arg cls: Blender type | class, | ||
| \n" " see :mod:`bpy.utils.register_class` for classes which can \n" " be registered.\n" " :type cls:" BPY_TYPEDEF_REGISTERABLE_DOC "\n" "\n" " .. note::\n" "\n" " If the class has an *unregister *class method it will be called\n" " before unregistering.\n" | ) |
References BPY_TYPEDEF_REGISTERABLE_DOC, and PyDoc_STRVAR().
|
static |
Definition at line 5922 of file bpy_rna.cc.
References BLI_assert_unreachable, ELEM, i, BPy_PropertyArrayRNA::prop, PROP_BOOLEAN, PROP_COLLECTION, PROP_ENUM, PROP_FLOAT, PROP_INT, PROP_POINTER, PROP_STRING, BPy_PropertyArrayRNA::ptr, pyprop_array_foreach_getset(), RNA_property_array_length(), RNA_property_float_get_array(), RNA_property_float_set_array(), RNA_property_int_get_array(), RNA_property_int_set_array(), RNA_property_type(), and size().
Referenced by pyprop_array_foreach_getset(), pyrna_prop_array_foreach_get(), and pyrna_prop_array_foreach_set().
| void pyrna_alloc_types | ( | ) |
Definition at line 9909 of file bpy_rna.cc.
References pyrna_alloc_types(), pyrna_struct_Subtype(), RNA_blender_rna_pointer_create(), RNA_PROP_BEGIN, RNA_PROP_END, and RNA_struct_find_property().
Referenced by BPY_python_start(), and pyrna_alloc_types().
|
static |
Definition at line 10402 of file bpy_rna.cc.
References pyrna_bl_owner_id_get(), and RNA_struct_state_owner_get().
Referenced by pyrna_bl_owner_id_get().
|
static |
Definition at line 10411 of file bpy_rna.cc.
References pyrna_bl_owner_id_set(), and RNA_struct_state_owner_set().
Referenced by pyrna_bl_owner_id_set().
| int pyrna_deferred_register_class | ( | StructRNA * | srna, |
| PyTypeObject * | py_class ) |
Definition at line 9173 of file bpy_rna.cc.
References pyrna_deferred_register_class(), pyrna_deferred_register_class_from_type_hints(), pyrna_deferred_register_class_recursive(), and RNA_struct_idprops_register_check().
Referenced by gizmo_properties_init(), gizmogroup_properties_init(), operator_properties_init(), pyrna_deferred_register_class(), and pyrna_register_class().
|
static |
Extract __annotations__ using typing.get_type_hints which handles the delayed evaluation.
Definition at line 9059 of file bpy_rna.cc.
References BLI_assert, deferred_register_prop(), pyrna_deferred_register_class_from_type_hints(), and ret.
Referenced by pyrna_deferred_register_class(), and pyrna_deferred_register_class_from_type_hints().
|
static |
Definition at line 9139 of file bpy_rna.cc.
References i, len(), pyrna_deferred_register_class_recursive(), pyrna_deferred_register_props(), pyrna_struct_Type, and ret.
Referenced by pyrna_deferred_register_class(), and pyrna_deferred_register_class_recursive().
|
static |
Definition at line 9115 of file bpy_rna.cc.
References bpy_intern_str___annotations__, deferred_register_prop(), pyrna_deferred_register_props(), and ret.
Referenced by pyrna_deferred_register_class_recursive(), and pyrna_deferred_register_props().
|
static |
Definition at line 4256 of file bpy_rna.cc.
References BPy_PropertyRNA_Check, BPy_PropertyRNA::prop, PROP_COLLECTION, BPy_PropertyRNA::ptr, pyrna_dir_members_py(), pyrna_dir_members_py__add_keys(), pyrna_struct_Subtype(), RNA_property_collection_type_get(), and RNA_property_type().
Referenced by pyrna_dir_members_py(), pyrna_prop_dir(), and pyrna_struct_dir().
|
static |
Definition at line 4247 of file bpy_rna.cc.
References pyrna_dir_members_py__add_keys().
Referenced by pyrna_dir_members_py(), and pyrna_dir_members_py__add_keys().
|
static |
Definition at line 4288 of file bpy_rna.cc.
References MEM_freeN(), pyrna_dir_members_rna(), RNA_function_defined(), RNA_function_identifier(), RNA_pointer_create_discrete(), RNA_PROP_BEGIN, RNA_PROP_END, RNA_property_is_idprop(), RNA_struct_find_property(), RNA_struct_iterator_property(), RNA_struct_name_get_alloc(), and PointerRNA::type.
Referenced by pyrna_dir_members_rna(), pyrna_prop_dir(), and pyrna_struct_dir().
|
static |
Definition at line 1227 of file bpy_rna.cc.
References BPY_context_get(), free(), MEM_freeN(), pyrna_enum_as_string(), pyrna_enum_repr(), result, and RNA_property_enum_items().
Referenced by pyrna_enum_as_string(), and pyrna_string_to_enum().
|
static |
Definition at line 1319 of file bpy_rna.cc.
References BLI_assert, BLI_snprintf(), BPY_context_get(), BPY_LOG_RNA, CLOG_WARN, MEM_freeN(), PROP_ENUM_FLAG, pyrna_enum_to_py(), ret, RNA_ENUM_BITFLAG_SIZE, rna_enum_dummy_NULL_items, RNA_property_enum_bitflag_identifiers(), RNA_property_enum_identifier(), RNA_property_enum_items_ex(), RNA_property_flag(), RNA_property_identifier(), RNA_struct_identifier(), RNA_struct_name_get_alloc(), and PointerRNA::type.
Referenced by pyrna_enum_to_py(), pyrna_param_to_py(), and pyrna_prop_to_py().
|
static |
Definition at line 6585 of file bpy_rna.cc.
References BKE_reports_init(), BLI_assert, BLI_dynstr_appendf(), BLI_dynstr_free(), BLI_dynstr_get_cstring(), BLI_dynstr_new(), BPY_context_get(), BPy_reports_to_error(), C, ParameterIterator::data, BPy_FunctionRNA::func, i, MEM_freeN(), PointerRNA::owner_id, ParameterIterator::parm, PARM_OUTPUT, PARM_REQUIRED, printf, BPy_FunctionRNA::ptr, PyC_FileAndNum(), pyrna_func_call(), pyrna_func_error_prefix(), pyrna_param_to_py(), pyrna_py_to_prop(), reports, ret, RNA_function_call(), RNA_function_identifier(), RNA_parameter_flag(), RNA_parameter_list_arg_count(), RNA_parameter_list_begin(), RNA_parameter_list_create(), RNA_parameter_list_end(), RNA_parameter_list_free(), RNA_parameter_list_next(), RNA_pointer_create_discrete(), RNA_property_identifier(), RNA_struct_identifier(), RPT_STORE, small_dict_get_item_string(), STREQ, PointerRNA::type, UNLIKELY, and ParameterIterator::valid.
Referenced by pyrna_func_call().
|
static |
Definition at line 6901 of file bpy_rna.cc.
References BPy_FunctionRNA::func, BPy_FunctionRNA::ptr, pyrna_func_doc_get(), ret, RNA_function_as_string_keywords(), RNA_function_identifier(), RNA_function_ui_description(), and RNA_struct_identifier().
Referenced by pyrna_func_doc_get().
|
static |
| parm_index | The argument index or -1 for keyword arguments. |
Definition at line 6558 of file bpy_rna.cc.
References BLI_snprintf(), BPy_FunctionRNA::func, BPy_FunctionRNA::ptr, pyrna_func_error_prefix(), RNA_function_identifier(), RNA_property_identifier(), RNA_struct_identifier(), and PointerRNA::type.
Referenced by pyrna_func_call(), and pyrna_func_error_prefix().
|
static |
Definition at line 1158 of file bpy_rna.cc.
References BPy_FunctionRNA::func, BPy_FunctionRNA::ptr, pyrna_func_repr(), RNA_function_identifier(), and RNA_struct_identifier().
Referenced by pyrna_func_repr().
|
static |
Definition at line 1545 of file bpy_rna.cc.
References BLI_assert, BPy_FunctionPointerRNA_capsule_identifier, BPy_FunctionRNA::ptr, pyrna_func_to_py(), and pyrna_func_Type.
Referenced by pyrna_func_to_py(), pyrna_prop_collection_getattro(), pyrna_struct_getattro(), and pyrna_subtype_set_rna().
|
static |
Definition at line 8006 of file bpy_rna.cc.
References BPy_FunctionRNA::ptr, and pyrna_function_dealloc().
Referenced by pyrna_function_dealloc().
|
static |
Definition at line 7969 of file bpy_rna.cc.
References BPy_FunctionPointerRNA_capsule_identifier, BPy_FunctionPointerRNA_Reference::func, BPy_FunctionRNA::func, BPy_FunctionPointerRNA_Reference::ptr, BPy_FunctionRNA::ptr, and pyrna_function_init().
Referenced by pyrna_function_init().
|
static |
Definition at line 7942 of file bpy_rna.cc.
References BPy_FunctionRNA::ptr, and pyrna_function_new().
Referenced by pyrna_function_new().
| bool pyrna_id_CheckPyObject | ( | PyObject * | obj | ) |
Definition at line 8512 of file bpy_rna.cc.
References BPy_StructRNA_Check, pyrna_id_CheckPyObject(), and RNA_struct_is_ID().
Referenced by idp_from_PyObject(), pyrna_id_CheckPyObject(), and pyrna_id_FromPyObject().
| PyObject * pyrna_id_CreatePyObject | ( | ID * | id | ) |
Definition at line 8491 of file bpy_rna.cc.
References pyrna_id_CreatePyObject(), pyrna_struct_CreatePyObject(), and RNA_id_pointer_create().
Referenced by bpy_file_path_map(), BPy_GeometrySet_get_curves(), BPy_GeometrySet_get_grease_pencil(), BPy_GeometrySet_get_instance_references(), BPy_GeometrySet_get_instances_pointcloud(), BPy_GeometrySet_get_mesh(), BPy_GeometrySet_get_mesh_base(), BPy_GeometrySet_get_pointcloud(), BPy_GeometrySet_get_volume(), bpy_user_map(), foreach_libblock_id_user_map_callback(), idprop_py_from_idp_id(), and pyrna_id_CreatePyObject().
| bool pyrna_id_FromPyObject | ( | PyObject * | obj, |
| ID ** | id ) |
Definition at line 8501 of file bpy_rna.cc.
References pyrna_id_CheckPyObject(), and pyrna_id_FromPyObject().
Referenced by bpy_batch_remove(), bpy_file_path_map(), BPy_GeometrySet_static_from_evaluated_object(), bpy_lib_write(), bpy_user_map(), blender::io::usd::USDMaterialExportContext::export_texture(), idp_from_DatablockPointer(), and pyrna_id_FromPyObject().
| void pyrna_invalidate | ( | BPy_DummyPointerRNA * | self | ) |
Definition at line 179 of file bpy_rna.cc.
References BPy_DummyPointerRNA::ptr, and pyrna_invalidate().
Referenced by BPY_DECREF_RNA_INVALIDATE(), and pyrna_invalidate().
| PyObject * pyrna_math_object_from_array | ( | PointerRNA * | ptr, |
| PropertyRNA * | prop ) |
Definition at line 697 of file bpy_rna.cc.
References Color_CreatePyObject(), Color_CreatePyObject_cb(), Euler_CreatePyObject(), Euler_CreatePyObject_cb(), EULER_ORDER_XYZ, GHash::flag, len(), MATHUTILS_CB_SUBTYPE_COLOR, MATHUTILS_CB_SUBTYPE_EUL, MATHUTILS_CB_SUBTYPE_QUAT, MATHUTILS_CB_SUBTYPE_VEC, mathutils_rna_array_cb_index, mathutils_rna_matrix_cb_index, Matrix_CreatePyObject(), Matrix_CreatePyObject_cb(), PROP_ALL_VECTOR_SUBTYPES, PROP_COLOR, PROP_COLOR_GAMMA, PROP_DYNAMIC, PROP_EULER, PROP_FLOAT, PROP_INT, PROP_MATRIX, PROP_QUATERNION, PROP_THICK_WRAP, pyrna_math_object_from_array(), pyrna_prop_array_subscript_slice(), pyrna_prop_CreatePyObject(), pyrna_rotation_euler_order_get(), Quaternion_CreatePyObject(), Quaternion_CreatePyObject_cb(), ret, RNA_property_array_dimension(), RNA_property_array_length(), RNA_property_flag(), RNA_property_float_get_array(), RNA_property_subtype(), RNA_property_type(), Vector_CreatePyObject(), and Vector_CreatePyObject_cb().
Referenced by pyrna_math_object_from_array(), and pyrna_py_from_array().
|
static |
Definition at line 6347 of file bpy_rna.cc.
References ParameterDynAlloc::array, ParameterDynAlloc::array_tot, ATTR_FALLTHROUGH, BLI_assert, data, PointerRNA::data, ELEM, GHash::flag, CollectionVector::items, len(), Matrix_CreatePyObject(), PointerRNA::owner_id, PARM_RNAPTR, PROP_ALL_VECTOR_SUBTYPES, PROP_BOOLEAN, PROP_BYTESTRING, PROP_COLLECTION, PROP_DIRPATH, PROP_DYNAMIC, PROP_ENUM, PROP_FILENAME, PROP_FILEPATH, PROP_FLOAT, PROP_INT, PROP_MATRIX, PROP_NEVER_NULL, PROP_POINTER, PROP_STRING, PROP_THICK_WRAP, PyC_UnicodeFromBytesAndSize(), pyrna_enum_to_py(), pyrna_param_to_py(), pyrna_struct_CreatePyObject(), ret, RNA_id_pointer_create(), RNA_parameter_flag(), RNA_pointer_create_discrete(), RNA_property_array_check(), RNA_property_array_length(), RNA_property_flag(), RNA_property_pointer_type(), RNA_property_subtype(), RNA_property_type(), RNA_struct_is_ID(), UNLIKELY, and Vector_CreatePyObject().
Referenced by bpy_class_call(), pyrna_func_call(), and pyrna_param_to_py().
|
static |
Definition at line 3289 of file bpy_rna.cc.
References BPy_PropertyArrayRNA::arraydim, BPy_PropertyArrayRNA::arrayoffset, BPY_context_get(), i, len(), BPy_PropertyArrayRNA::prop, prop_subscript_ass_array_int(), prop_subscript_ass_array_slice(), BPy_PropertyArrayRNA::ptr, pyrna_prop_array_ass_subscript(), pyrna_prop_array_length(), PYRNA_PROP_CHECK_INT, ret, RNA_property_editable_flag(), RNA_property_identifier(), RNA_property_update(), RNA_property_update_check(), RNA_struct_identifier(), step, and stop.
Referenced by pyrna_prop_array_ass_subscript().
|
static |
Definition at line 2248 of file bpy_rna.cc.
References BPy_PropertyRNA::prop, BPy_PropertyRNA::ptr, pyrna_prop_array_bool(), PYRNA_PROP_CHECK_INT, and RNA_property_array_length().
Referenced by pyrna_prop_array_bool().
|
static |
Definition at line 3419 of file bpy_rna.cc.
References BPy_PropertyRNA::prop, BPy_PropertyRNA::ptr, pyrna_array_contains_py(), and pyrna_prop_array_contains().
Referenced by pyrna_prop_array_contains().
|
static |
Definition at line 6083 of file bpy_rna.cc.
References pyprop_array_foreach_getset(), pyrna_prop_array_foreach_get(), and PYRNA_PROP_CHECK_OBJ.
Referenced by pyrna_prop_array_foreach_get().
|
static |
Definition at line 6096 of file bpy_rna.cc.
References pyprop_array_foreach_getset(), pyrna_prop_array_foreach_set(), and PYRNA_PROP_CHECK_OBJ.
Referenced by pyrna_prop_array_foreach_set().
|
static |
Definition at line 4866 of file bpy_rna.cc.
References pyrna_prop_array_getattro().
Referenced by pyrna_prop_array_getattro().
|
static |
Definition at line 6105 of file bpy_rna.cc.
References len(), BPy_PropertyArrayRNA::prop, BPy_PropertyArrayRNA::ptr, pyrna_prop_array_iter(), pyrna_prop_array_length(), pyrna_prop_array_subscript_slice(), PYRNA_PROP_CHECK_OBJ, and ret.
Referenced by pyrna_prop_array_iter().
|
static |
Definition at line 2228 of file bpy_rna.cc.
References BPy_PropertyArrayRNA::arraydim, BPy_PropertyArrayRNA::prop, BPy_PropertyArrayRNA::ptr, pyrna_prop_array_length(), PYRNA_PROP_CHECK_INT, RNA_property_array_dimension(), RNA_property_array_length(), and RNA_property_multi_array_length().
Referenced by prop_subscript_ass_array_int(), pyrna_prop_array_ass_subscript(), pyrna_prop_array_iter(), pyrna_prop_array_length(), pyrna_prop_array_subscript(), pyrna_prop_array_subscript_int(), and pyrna_prop_str().
|
static |
Definition at line 1153 of file bpy_rna.cc.
References BPy_PropertyArrayRNA::arraydim, BPy_PropertyArrayRNA::arrayoffset, pyrna_prop_array_repr(), and pyrna_prop_repr_ex().
Referenced by pyrna_prop_array_repr().
|
static |
Definition at line 2945 of file bpy_rna.cc.
References i, len(), BPy_PropertyArrayRNA::prop, BPy_PropertyArrayRNA::ptr, pyrna_prop_array_length(), pyrna_prop_array_subscript(), pyrna_prop_array_subscript_int(), pyrna_prop_array_subscript_slice(), PYRNA_PROP_CHECK_OBJ, step, and stop.
Referenced by pyrna_prop_array_subscript().
|
static |
Definition at line 2411 of file bpy_rna.cc.
References len(), pyrna_prop_array_length(), pyrna_prop_array_subscript_int(), pyrna_prop_array_to_py_index(), and PYRNA_PROP_CHECK_OBJ.
Referenced by pyrna_prop_array_subscript(), and pyrna_prop_array_subscript_int().
|
static |
TODO: dimensions
Definition at line 2646 of file bpy_rna.cc.
References BLI_assert_msg, length(), PROP_BOOLEAN, PROP_FLOAT, PROP_INT, pyrna_prop_array_subscript_slice(), pyrna_prop_array_to_py_index(), PYRNA_STACK_ARRAY, RNA_property_array_dimension(), RNA_property_boolean_get_array(), RNA_property_float_get_array(), RNA_property_int_get_array(), RNA_property_type(), and stop.
Referenced by pyrna_math_object_from_array(), pyrna_prop_array_iter(), pyrna_prop_array_subscript(), and pyrna_prop_array_subscript_slice().
|
static |
Definition at line 2149 of file bpy_rna.cc.
References BPy_PropertyArrayRNA::prop, BPy_PropertyArrayRNA::ptr, pyrna_prop_array_to_py_index(), PYRNA_PROP_CHECK_OBJ, and pyrna_py_from_array_index().
Referenced by pyrna_prop_array_subscript_int(), pyrna_prop_array_subscript_slice(), and pyrna_prop_array_to_py_index().
|
static |
Definition at line 4049 of file bpy_rna.cc.
References MEM_freeN(), BPy_PropertyRNA::prop, PROP_STRING, BPy_PropertyRNA::ptr, pyrna_prop_as_bytes(), ret, RNA_property_identifier(), RNA_property_string_get_alloc(), RNA_property_type(), and RNA_struct_identifier().
Referenced by pyrna_prop_as_bytes().
|
static |
Definition at line 2860 of file bpy_rna.cc.
References CLAMP_MIN, i, len(), BPy_PropertyRNA::prop, BPy_PropertyRNA::ptr, PYRNA_PROP_CHECK_INT, pyrna_prop_collection_ass_subscript(), pyrna_prop_collection_ass_subscript_int(), pyrna_prop_collection_subscript_slice(), pyrna_prop_collection_subscript_str(), pyrna_prop_collection_type_check(), RNA_property_collection_length(), step, and stop.
Referenced by pyrna_prop_collection_ass_subscript().
|
static |
Definition at line 2377 of file bpy_rna.cc.
References len(), PointerRNA_NULL, BPy_PropertyRNA::prop, BPy_PropertyRNA::ptr, PYRNA_PROP_CHECK_INT, PYRNA_PROP_COLLECTION_ABS_INDEX, pyrna_prop_collection_ass_subscript_int(), RNA_property_collection_assign_int(), and RNA_property_collection_length().
Referenced by pyrna_prop_collection_ass_subscript(), and pyrna_prop_collection_ass_subscript_int().
|
static |
Definition at line 2255 of file bpy_rna.cc.
References BPy_PropertyRNA::prop, BPy_PropertyRNA::ptr, PYRNA_PROP_CHECK_INT, pyrna_prop_collection_bool(), and RNA_property_collection_is_empty().
Referenced by pyrna_prop_collection_bool().
|
static |
Definition at line 3424 of file bpy_rna.cc.
References BPy_PropertyRNA::prop, BPy_PropertyRNA::ptr, pyrna_prop_collection_contains(), pyrna_prop_collection_string_subscript_supported_or_error(), pyrna_prop_collection_subscript_str_lib_pair_ptr(), and RNA_property_collection_lookup_string().
Referenced by pyrna_prop_collection_contains().
|
static |
Definition at line 5452 of file bpy_rna.cc.
References i, MEM_freeN(), BPy_PropertyRNA::prop, BPy_PropertyRNA::ptr, PYRNA_PROP_CHECK_OBJ, pyrna_prop_collection_find(), RNA_PROP_BEGIN, RNA_PROP_END, and RNA_struct_name_get_alloc().
Referenced by pyrna_prop_collection_find().
|
static |
Definition at line 5902 of file bpy_rna.cc.
References foreach_getset(), PYRNA_PROP_CHECK_OBJ, and pyrna_prop_collection_foreach_get().
Referenced by pyrna_prop_collection_foreach_get().
|
static |
Definition at line 5915 of file bpy_rna.cc.
References foreach_getset(), PYRNA_PROP_CHECK_OBJ, and pyrna_prop_collection_foreach_set().
Referenced by pyrna_prop_collection_foreach_set().
|
static |
Definition at line 5399 of file bpy_rna.cc.
References BPy_PropertyRNA::prop, BPy_PropertyRNA::ptr, PYRNA_PROP_CHECK_OBJ, pyrna_prop_collection_get(), pyrna_prop_collection_string_subscript_supported_or_error(), pyrna_prop_collection_subscript_str_lib_pair(), pyrna_struct_CreatePyObject(), ret, and RNA_property_collection_lookup_string().
Referenced by pyrna_prop_collection_get().
|
static |
Definition at line 4871 of file bpy_rna.cc.
References BPy_PropertyRNA::prop, BPy_PropertyRNA::ptr, pyrna_func_to_py(), pyrna_prop_collection_getattro(), pyrna_prop_to_py(), pyrna_struct_CreatePyObject(), pyrna_struct_Subtype(), ret, RNA_property_collection_type_get(), RNA_struct_find_function(), RNA_struct_find_property(), and PointerRNA::type.
Referenced by pyrna_prop_collection_getattro().
|
static |
Definition at line 4992 of file bpy_rna.cc.
References PointerRNA::data, BPy_PropertyRNA::prop, BPy_PropertyRNA::ptr, pyrna_prop_collection_idprop_add(), pyrna_struct_CreatePyObject(), rna_disallow_writes, rna_id_write_error(), and RNA_property_collection_add().
Referenced by pyrna_prop_collection_idprop_add().
|
static |
Definition at line 5051 of file bpy_rna.cc.
References BPy_PropertyRNA::prop, BPy_PropertyRNA::ptr, pyrna_prop_collection_idprop_clear(), rna_disallow_writes, rna_id_write_error(), and RNA_property_collection_clear().
Referenced by pyrna_prop_collection_idprop_clear().
|
static |
Definition at line 5075 of file bpy_rna.cc.
References BPy_PropertyRNA::prop, BPy_PropertyRNA::ptr, pyrna_prop_collection_idprop_move(), rna_disallow_writes, rna_id_write_error(), and RNA_property_collection_move().
Referenced by pyrna_prop_collection_idprop_move().
|
static |
Definition at line 5021 of file bpy_rna.cc.
References BPy_PropertyRNA::prop, BPy_PropertyRNA::ptr, pyrna_prop_collection_idprop_remove(), rna_disallow_writes, rna_id_write_error(), and RNA_property_collection_remove().
Referenced by pyrna_prop_collection_idprop_remove().
|
static |
Definition at line 5213 of file bpy_rna.cc.
References i, MEM_freeN(), BPy_PropertyRNA::prop, BPy_PropertyRNA::ptr, pyrna_prop_collection_items(), pyrna_struct_CreatePyObject(), ret, RNA_PROP_BEGIN, RNA_PROP_END, and RNA_struct_name_get_alloc().
Referenced by pyrna_prop_collection_items().
|
static |
Definition at line 7835 of file bpy_rna.cc.
References BPy_PropertyRNA::prop, BPy_PropertyRNA::ptr, pyrna_prop_collection_iter(), and pyrna_prop_collection_iter_CreatePyObject().
Referenced by pyrna_prop_collection_iter().
|
static |
Definition at line 7810 of file bpy_rna.cc.
References BLI_assert, BPy_PropertyPointerRNA_capsule_identifier, BPy_PropertyCollectionIterRNA::iter, pyrna_prop_collection_iter_CreatePyObject(), pyrna_prop_collection_iter_Type, and UNUSED_VARS_NDEBUG.
Referenced by pyrna_prop_collection_iter(), and pyrna_prop_collection_iter_CreatePyObject().
|
static |
Definition at line 7785 of file bpy_rna.cc.
References BPy_PropertyCollectionIterRNA::iter, pyrna_prop_collection_iter_dealloc(), and RNA_property_collection_end().
Referenced by pyrna_prop_collection_iter_dealloc().
|
static |
Definition at line 7740 of file bpy_rna.cc.
References BPy_PropertyPointerRNA_capsule_identifier, BPy_PropertyCollectionIterRNA::iter, BPy_PropertyPointerRNA_Reference::prop, BPy_PropertyPointerRNA_Reference::ptr, pyrna_prop_collection_iter_init(), RNA_property_collection_begin(), and RNA_property_collection_end().
Referenced by pyrna_prop_collection_iter_init().
|
static |
Definition at line 7710 of file bpy_rna.cc.
References BPy_PropertyCollectionIterRNA::iter, and pyrna_prop_collection_iter_new().
Referenced by pyrna_prop_collection_iter_new().
|
static |
Definition at line 7842 of file bpy_rna.cc.
References BPy_PropertyCollectionIterRNA::iter, pyrna_prop_collection_iter_next(), pyrna_struct_CreatePyObject(), and RNA_property_collection_next().
Referenced by pyrna_prop_collection_iter_next().
|
static |
Definition at line 5181 of file bpy_rna.cc.
References MEM_freeN(), BPy_PropertyRNA::prop, BPy_PropertyRNA::ptr, pyrna_prop_collection_keys(), ret, RNA_PROP_BEGIN, RNA_PROP_END, and RNA_struct_name_get_alloc().
Referenced by pyrna_prop_collection_keys().
|
static |
Definition at line 2239 of file bpy_rna.cc.
References BPy_PropertyRNA::prop, BPy_PropertyRNA::ptr, PYRNA_PROP_CHECK_INT, pyrna_prop_collection_length(), and RNA_property_collection_length().
Referenced by pyrna_prop_collection_length(), and pyrna_prop_str().
|
static |
Definition at line 4948 of file bpy_rna.cc.
References BPy_PropertyRNA::prop, BPy_PropertyRNA::ptr, pyrna_prop_collection_setattro(), pyrna_py_to_prop(), rna_disallow_writes, rna_id_write_error(), RNA_property_collection_type_get(), and RNA_struct_find_property().
Referenced by pyrna_prop_collection_setattro().
|
static |
Definition at line 2305 of file bpy_rna.cc.
References BLI_assert, BPy_PropertyRNA_Check, BPy_PropertyRNA::prop, pyrna_prop_collection_string_subscript_supported_or_error(), pyrna_prop_collection_string_subscript_unsupported_error(), and RNA_property_collection_lookup_string_supported().
Referenced by pyrna_prop_collection_contains(), pyrna_prop_collection_get(), and pyrna_prop_collection_string_subscript_supported_or_error().
|
static |
Definition at line 2295 of file bpy_rna.cc.
References BPy_PropertyRNA::prop, BPy_PropertyRNA::ptr, pyrna_prop_collection_string_subscript_unsupported_error(), RNA_property_identifier(), and RNA_struct_identifier().
Referenced by pyrna_prop_collection_string_subscript_supported_or_error(), pyrna_prop_collection_string_subscript_unsupported_error(), and pyrna_prop_collection_subscript_str().
|
static |
Definition at line 2742 of file bpy_rna.cc.
References CLAMP_MIN, i, len(), BPy_PropertyRNA::prop, BPy_PropertyRNA::ptr, PYRNA_PROP_CHECK_OBJ, pyrna_prop_collection_subscript(), pyrna_prop_collection_subscript_int(), pyrna_prop_collection_subscript_slice(), pyrna_prop_collection_subscript_str(), pyrna_prop_collection_subscript_str_lib_pair(), RNA_property_collection_length(), step, and stop.
Referenced by pyrna_prop_collection_subscript().
|
static |
Definition at line 2317 of file bpy_rna.cc.
References i, len(), BPy_PropertyRNA::prop, BPy_PropertyRNA::ptr, CollectionPropertyIterator::ptr, PYRNA_PROP_CHECK_OBJ, PYRNA_PROP_COLLECTION_ABS_INDEX, pyrna_prop_collection_subscript_int(), pyrna_prop_collection_subscript_is_valid_or_error(), pyrna_struct_CreatePyObject(), result, RNA_property_collection_begin(), RNA_property_collection_end(), RNA_property_collection_length(), RNA_property_collection_lookup_int(), RNA_property_collection_lookup_int_has_fn(), RNA_property_collection_next(), and CollectionPropertyIterator::valid.
Referenced by pyrna_prop_collection_subscript(), and pyrna_prop_collection_subscript_int().
|
static |
| result | The result of calling a subscription operation on a collection (never nullptr). |
Definition at line 2278 of file bpy_rna.cc.
References BLI_assert, BPy_StructRNA_Check, BPy_StructRNA::ptr, pyrna_prop_collection_subscript_is_valid_or_error(), and UNLIKELY.
Referenced by pyrna_prop_collection_subscript_int(), pyrna_prop_collection_subscript_is_valid_or_error(), and pyrna_prop_collection_subscript_str().
|
static |
Definition at line 2607 of file bpy_rna.cc.
References BPy_PropertyRNA::prop, BPy_PropertyRNA::ptr, CollectionPropertyIterator::ptr, PYRNA_PROP_CHECK_OBJ, pyrna_prop_collection_subscript_slice(), pyrna_struct_CreatePyObject(), RNA_property_collection_begin(), RNA_property_collection_end(), RNA_property_collection_next(), RNA_property_collection_skip(), stop, and CollectionPropertyIterator::valid.
Referenced by pyrna_prop_collection_ass_subscript(), pyrna_prop_collection_subscript(), pyrna_prop_collection_subscript_slice(), and pyrna_prop_collection_values().
|
static |
Definition at line 2431 of file bpy_rna.cc.
References BLI_assert, MEM_freeN(), BPy_PropertyRNA::prop, BPy_PropertyRNA::ptr, CollectionPropertyIterator::ptr, PYRNA_PROP_CHECK_OBJ, pyrna_prop_collection_string_subscript_unsupported_error(), pyrna_prop_collection_subscript_is_valid_or_error(), pyrna_prop_collection_subscript_str(), pyrna_struct_CreatePyObject(), result, RNA_property_collection_begin(), RNA_property_collection_end(), RNA_property_collection_lookup_string(), RNA_property_collection_lookup_string_has_fn(), RNA_property_collection_lookup_string_has_nameprop(), RNA_property_collection_next(), RNA_property_string_get_alloc(), RNA_struct_name_property(), STREQ, PointerRNA::type, and CollectionPropertyIterator::valid.
Referenced by pyrna_prop_collection_ass_subscript(), pyrna_prop_collection_subscript(), and pyrna_prop_collection_subscript_str().
|
static |
Definition at line 2591 of file bpy_rna.cc.
References pyrna_prop_collection_subscript_str_lib_pair(), pyrna_prop_collection_subscript_str_lib_pair_ptr(), and pyrna_struct_CreatePyObject().
Referenced by pyrna_prop_collection_get(), pyrna_prop_collection_subscript(), and pyrna_prop_collection_subscript_str_lib_pair().
|
static |
Special case: bpy.data.objects["some_id_name", "//some_lib_name.blend"] also for: bpy.data.objects.get(("some_id_name", "//some_lib_name.blend"), fallback)
Definition at line 2502 of file bpy_rna.cc.
References BLI_findstring(), ID::lib, lib, Main::libraries, ID::name, offsetof, BPy_PropertyRNA::prop, BPy_PropertyRNA::ptr, pyrna_prop_collection_subscript_str_lib_pair_ptr(), RNA_PROP_BEGIN, RNA_PROP_END, RNA_struct_identifier(), and STREQLEN.
Referenced by pyrna_prop_collection_contains(), pyrna_prop_collection_subscript_str_lib_pair(), and pyrna_prop_collection_subscript_str_lib_pair_ptr().
|
static |
Definition at line 2817 of file bpy_rna.cc.
References BPy_StructRNA_Check, BPy_PropertyRNA::prop, PROP_NEVER_NULL, BPy_PropertyRNA::ptr, pyrna_prop_collection_type_check(), RNA_property_flag(), RNA_property_pointer_type(), RNA_struct_identifier(), and RNA_struct_is_a().
Referenced by pyrna_prop_collection_ass_subscript(), and pyrna_prop_collection_type_check().
|
static |
Definition at line 5258 of file bpy_rna.cc.
References pyrna_prop_collection_subscript_slice(), and pyrna_prop_collection_values().
Referenced by pyrna_prop_collection_values().
|
static |
Definition at line 869 of file bpy_rna.cc.
References b, BPy_PropertyRNA::prop, BPy_PropertyRNA::ptr, and pyrna_prop_compare().
Referenced by pyrna_prop_compare(), and pyrna_prop_richcmp().
| PyObject * pyrna_prop_CreatePyObject | ( | PointerRNA * | ptr, |
| PropertyRNA * | prop ) |
Definition at line 8443 of file bpy_rna.cc.
References BLI_assert, BPy_PropertyPointerRNA_capsule_identifier, PointerRNA::owner_id, PROP_COLLECTION, PROP_IDPROPERTY, BPy_PropertyRNA::ptr, pyrna_prop_array_Type, pyrna_prop_collection_idprop_Type, pyrna_prop_collection_Type, pyrna_prop_CreatePyObject(), pyrna_prop_Type, RNA_property_array_check(), RNA_property_flag(), and RNA_property_type().
Referenced by pyrna_math_object_from_array(), pyrna_prop_CreatePyObject(), pyrna_prop_to_py(), pyrna_py_from_array(), pyrna_py_from_array_index(), and pyrna_struct_path_resolve().
|
static |
Definition at line 4844 of file bpy_rna.cc.
References BPy_PropertyRNA_CheckExact, BPy_PropertyRNA::prop, PROP_COLLECTION, BPy_PropertyRNA::ptr, pyrna_dir_members_py(), pyrna_dir_members_rna(), pyrna_prop_dir(), ret, RNA_property_collection_type_get(), and RNA_property_type().
Referenced by pyrna_prop_dir().
|
static |
Definition at line 1172 of file bpy_rna.cc.
References BPy_PropertyRNA::prop, BPy_PropertyRNA::ptr, Py_HashPointer, pyrna_prop_hash(), x, and y.
Referenced by pyrna_prop_hash().
|
static |
Definition at line 4022 of file bpy_rna.cc.
References BPy_PropertyRNA::prop, BPy_PropertyRNA::ptr, PyC_UnicodeFromStdStr(), pyrna_prop_path_from_id(), RNA_path_from_ID_to_property(), RNA_property_identifier(), and RNA_struct_identifier().
Referenced by pyrna_prop_path_from_id().
|
static |
Definition at line 1148 of file bpy_rna.cc.
References pyrna_prop_repr(), and pyrna_prop_repr_ex().
Referenced by pyrna_prop_repr().
|
static |
Definition at line 1102 of file bpy_rna.cc.
References BKE_idtype_idcode_to_name_plural(), G_MAIN, GS, ID::name, BPy_PropertyRNA::prop, BPy_PropertyRNA::ptr, PYRNA_PROP_CHECK_OBJ, pyrna_prop_repr_ex(), pyrna_prop_str(), ret, RNA_path_from_real_ID_to_property_index(), and RNA_property_identifier().
Referenced by pyrna_prop_array_repr(), pyrna_prop_repr(), and pyrna_prop_repr_ex().
|
static |
Definition at line 908 of file bpy_rna.cc.
References ATTR_FALLTHROUGH, b, BPy_PropertyRNA_Check, pyrna_prop_compare(), and pyrna_prop_richcmp().
Referenced by pyrna_prop_richcmp().
|
static |
Definition at line 1033 of file bpy_rna.cc.
References BLI_str_tolower_ascii(), len(), MEM_freeN(), BPy_PropertyRNA::prop, PROP_COLLECTION, PROP_POINTER, BPy_PropertyRNA::ptr, pyrna_prop_array_length(), PYRNA_PROP_CHECK_OBJ, pyrna_prop_collection_length(), pyrna_prop_str(), ret, RNA_enum_id_from_value(), rna_enum_property_type_items, RNA_property_array_check(), RNA_property_collection_type_get(), RNA_property_identifier(), RNA_property_pointer_get(), RNA_property_type(), RNA_struct_identifier(), RNA_struct_name_get_alloc(), SNPRINTF, STRNCPY(), and PointerRNA::type.
Referenced by pyrna_prop_repr_ex(), and pyrna_prop_str().
|
static |
Definition at line 1275 of file bpy_rna.cc.
References BPY_context_get(), free(), MEM_freeN(), pyrna_enum_bitfield_from_set(), pyrna_prop_to_enum_bitfield(), ret, RNA_property_enum_items(), RNA_property_identifier(), RNA_struct_identifier(), and PointerRNA::type.
Referenced by pyrna_prop_to_enum_bitfield(), and pyrna_py_to_prop().
| PyObject * pyrna_prop_to_py | ( | PointerRNA * | ptr, |
| PropertyRNA * | prop ) |
Definition at line 1394 of file bpy_rna.cc.
References PointerRNA::data, ELEM, MEM_freeN(), PROP_BOOLEAN, PROP_BYTESTRING, PROP_COLLECTION, PROP_DIRPATH, PROP_ENUM, PROP_FILENAME, PROP_FILEPATH, PROP_FLOAT, PROP_INT, PROP_POINTER, PROP_STRING, PyC_UnicodeFromBytesAndSize(), pyrna_enum_to_py(), pyrna_prop_CreatePyObject(), pyrna_prop_to_py(), pyrna_py_from_array(), pyrna_struct_CreatePyObject(), ret, RNA_property_array_check(), RNA_property_boolean_get(), RNA_property_enum_get(), RNA_property_float_get(), RNA_property_int_get(), RNA_property_pointer_get(), RNA_property_string_get_alloc(), RNA_property_subtype(), and RNA_property_type().
Referenced by pyrna_driver_get_variable_value(), pyrna_prop_collection_getattro(), pyrna_prop_to_py(), pyrna_struct_getattro(), and pyrna_struct_path_resolve().
|
static |
Definition at line 4086 of file bpy_rna.cc.
References BPY_context_get(), BPy_PropertyRNA::prop, BPy_PropertyRNA::ptr, pyrna_prop_update(), and RNA_property_update().
Referenced by pyrna_prop_update().
| int pyrna_prop_validity_check | ( | const BPy_PropertyRNA * | self | ) |
Definition at line 167 of file bpy_rna.cc.
References BPy_PropertyRNA::prop, BPy_PropertyRNA::ptr, pyrna_prop_validity_check(), and RNA_property_identifier().
Referenced by pyrna_prop_validity_check().
|
static |
Definition at line 7583 of file bpy_rna.cc.
References BPy_PropertyArrayRNA::arraydim, BPy_PropertyArrayRNA::arrayoffset, BLI_assert, BPy_PropertyPointerRNA_capsule_identifier, BPy_PropertyArrayRNA::prop, BPy_PropertyPointerRNA_Reference::prop, BPy_PropertyArrayRNA::ptr, BPy_PropertyPointerRNA_Reference::ptr, pyrna_prop_array_Type, and pyrna_property_array_init().
Referenced by pyrna_property_array_init().
|
static |
Definition at line 7562 of file bpy_rna.cc.
References BPy_PropertyRNA::ptr, and pyrna_property_dealloc().
Referenced by pyrna_property_dealloc().
|
static |
Definition at line 7512 of file bpy_rna.cc.
References BLI_assert, BPy_PropertyPointerRNA_capsule_identifier, BPy_PropertyPointerRNA_Reference::prop, BPy_PropertyRNA::prop, BPy_PropertyPointerRNA_Reference::ptr, BPy_PropertyRNA::ptr, pyrna_prop_Type, and pyrna_property_init().
Referenced by pyrna_property_init().
|
static |
Definition at line 7472 of file bpy_rna.cc.
References BLI_assert, BPy_PropertyRNA::ptr, pyrna_prop_Type, and pyrna_property_new().
Referenced by pyrna_property_new().
|
static |
Definition at line 1564 of file bpy_rna.cc.
References Vector< T, InlineBufferCapacity, Allocator >::append(), BKE_reports_init(), BLI_assert, BLI_path_is_rel(), BLI_strncpy(), BLI_strncpy_utf8(), BPY_context_get(), bpy_intern_str_properties, BPy_reports_to_error(), BPy_StructRNA_Check, data, ELEM, GHash::flag, i, ID_TAG_TEMP_MAIN, CollectionVector::items, PointerRNA::owner_id, PARM_OUTPUT, PARM_RNAPTR, PointerRNA_NULL, BPy_PropertyRNA::prop, PROP_BOOLEAN, PROP_BYTESTRING, PROP_COLLECTION, PROP_DIRPATH, PROP_ENUM, PROP_ENUM_FLAG, PROP_FILENAME, PROP_FILEPATH, PROP_FLOAT, PROP_ID_SELF_CHECK, PROP_INT, PROP_NEVER_NULL, PROP_PATH_SUPPORTS_BLEND_RELATIVE, PROP_POINTER, PROP_STRING, PROP_THICK_WRAP, BPy_PropertyRNA::ptr, BPy_StructRNA::ptr, PyC_Err_Format_Prefix(), PyC_ExceptionBuffer(), PyC_UnicodeAsBytes(), pyrna_prop_collection_Type, pyrna_prop_to_enum_bitfield(), pyrna_py_to_array(), pyrna_py_to_prop(), pyrna_pydict_to_props(), pyrna_string_to_enum(), pyrna_struct_CreatePyObject(), pyrna_struct_validity_check(), reports, RNA_parameter_flag(), RNA_pointer_create_discrete(), RNA_property_array_check(), RNA_property_boolean_set(), RNA_property_collection_add(), RNA_property_collection_type_get(), RNA_property_enum_set(), RNA_property_flag(), RNA_property_float_clamp(), RNA_property_float_set(), RNA_property_identifier(), RNA_property_int_clamp(), RNA_property_int_set(), RNA_property_pointer_get(), RNA_property_pointer_set(), RNA_property_pointer_type(), RNA_property_string_maxlength(), RNA_property_string_set(), RNA_property_string_set_bytes(), RNA_property_subtype(), RNA_property_type(), RNA_property_update(), RNA_property_update_check(), RNA_struct_base_child_of(), RNA_struct_identifier(), RNA_struct_is_a(), RPT_STORE, SNPRINTF, STRINGIFY, ID::tag, PointerRNA::type, and UNLIKELY.
Referenced by bpy_class_call(), bpy_class_validate_recursive(), pyrna_func_call(), pyrna_prop_collection_setattro(), pyrna_py_to_prop(), pyrna_pydict_to_props(), and pyrna_struct_setattro().
|
static |
Definition at line 2155 of file bpy_rna.cc.
References BPy_PropertyArrayRNA::arraydim, BPy_PropertyArrayRNA::arrayoffset, BPY_context_get(), BPy_PropertyArrayRNA::prop, PROP_BOOLEAN, PROP_FLOAT, PROP_INT, BPy_PropertyArrayRNA::ptr, PyC_Long_AsBool(), pyrna_py_to_array_index(), pyrna_py_to_prop_array_index(), ret, RNA_property_array_dimension(), RNA_property_boolean_set_index(), RNA_property_float_clamp(), RNA_property_float_set_index(), RNA_property_int_clamp(), RNA_property_int_set_index(), RNA_property_type(), RNA_property_update(), and RNA_property_update_check().
Referenced by prop_subscript_ass_array_int(), and pyrna_py_to_prop_array_index().
| int pyrna_pydict_to_props | ( | PointerRNA * | ptr, |
| PyObject * | kw, | ||
| const bool | all_args, | ||
| const char * | error_prefix ) |
Definition at line 1475 of file bpy_rna.cc.
References pyrna_py_to_prop(), pyrna_pydict_to_props(), RNA_property_identifier(), RNA_STRUCT_BEGIN, RNA_STRUCT_END, RNA_struct_find_property(), and STREQ.
Referenced by pyop_as_string(), pyop_call(), pyrna_py_to_prop(), and pyrna_pydict_to_props().
|
static |
Definition at line 10007 of file bpy_rna.cc.
References BKE_report_print_level_set(), BKE_reports_free(), BKE_reports_init(), BLI_listbase_is_empty(), bpy_class_call(), bpy_class_check_any_bases_registered(), bpy_class_check_any_subclasses_registered(), bpy_class_free(), bpy_class_validate(), BPY_context_get(), bpy_intern_str_bl_rna, bpy_intern_str_register, BPy_reports_to_error(), BPy_reports_write_stdout(), C, CTX_data_main(), G, G_DEBUG_PYTHON, ReportList::list, PyObject_GetOptionalAttr, pyrna_deferred_register_class(), pyrna_register_class(), pyrna_struct_as_srna(), pyrna_subtype_set_rna(), pyrna_write_check(), reports, ret, RNA_struct_identifier(), RNA_struct_py_type_get(), RNA_struct_py_type_set(), RNA_struct_register(), RPT_DEBUG, RPT_STORE, and RPT_WARNING.
Referenced by pyrna_register_class().
|
static |
Definition at line 662 of file bpy_rna.cc.
References EULER_ORDER_XYZ, EULER_ORDER_ZYX, pyrna_rotation_euler_order_get(), RNA_property_enum_get(), and RNA_struct_find_property().
Referenced by mathutils_rna_vector_get(), mathutils_rna_vector_set(), pyrna_math_object_from_array(), and pyrna_rotation_euler_order_get().
|
static |
Definition at line 10174 of file bpy_rna.cc.
References LISTBASE_FOREACH, PROP_POINTER, pyrna_srna_contains_pointer_prop_srna(), RNA_pointer_create_discrete(), RNA_property_builtin(), RNA_property_identifier(), RNA_property_pointer_type(), RNA_property_type(), and RNA_struct_type_properties().
Referenced by pyrna_srna_contains_pointer_prop_srna(), and pyrna_unregister_class().
|
static |
Return the #PyTypeObject or null,
Definition at line 8123 of file bpy_rna.cc.
References bpy_intern_str___slots__, BPY_LOG_RNA, bpy_types_dict, CLOG_ERROR, CLOG_INFO, PyC_ObSpitStr(), pyrna_srna_ExternalType(), pyrna_srna_PyBase(), and RNA_struct_identifier().
Referenced by pyrna_srna_ExternalType(), and pyrna_srna_Subtype().
|
static |
Definition at line 8091 of file bpy_rna.cc.
References pyrna_srna_PyBase(), pyrna_srna_Subtype(), pyrna_struct_Type, and RNA_struct_base().
Referenced by pyrna_srna_ExternalType(), pyrna_srna_PyBase(), and pyrna_srna_Subtype().
|
static |
Return the #PyTypeObject or null with an exception set.
Definition at line 8185 of file bpy_rna.cc.
References BLI_assert, bpy_intern_str___module__, bpy_intern_str___slots__, bpy_intern_str_bpy_types, BPY_LOG_RNA, CLOG_ERROR, pyrna_srna_ExternalType(), pyrna_srna_PyBase(), pyrna_srna_Subtype(), pyrna_struct_meta_idprop_Type, pyrna_subtype_set_rna(), RNA_struct_identifier(), RNA_struct_idprops_check(), RNA_struct_py_type_get(), and RNA_struct_ui_description().
Referenced by pyrna_srna_PyBase(), pyrna_srna_Subtype(), pyrna_struct_Subtype(), pyrna_struct_type_extend_capi(), and pyrna_subtype_set_rna().
|
static |
Definition at line 1248 of file bpy_rna.cc.
References BPY_context_get(), MEM_freeN(), pyrna_enum_as_string(), pyrna_string_to_enum(), and RNA_property_enum_value().
Referenced by pyrna_py_to_prop(), and pyrna_string_to_enum().
|
static |
Definition at line 5381 of file bpy_rna.cc.
References BPy_StructRNA::ptr, and pyrna_struct_as_pointer().
Referenced by pyrna_struct_as_pointer().
| const PointerRNA * pyrna_struct_as_ptr | ( | PyObject * | py_obj, |
| const StructRNA * | srna ) |
Definition at line 8902 of file bpy_rna.cc.
References BPy_StructRNA_Check, BPy_StructRNA::ptr, pyrna_struct_as_ptr(), PYRNA_STRUCT_CHECK_OBJ, RNA_struct_identifier(), and RNA_struct_is_a().
Referenced by bpy_context_temp_override(), pyrna_struct_as_ptr(), pyrna_struct_as_ptr_or_null(), and pyrna_struct_as_ptr_parse().
| const PointerRNA * pyrna_struct_as_ptr_or_null | ( | PyObject * | py_obj, |
| const StructRNA * | srna ) |
Definition at line 8916 of file bpy_rna.cc.
References PointerRNA_NULL, pyrna_struct_as_ptr(), and pyrna_struct_as_ptr_or_null().
Referenced by pyrna_struct_as_ptr_or_null(), pyrna_struct_as_ptr_or_null_parse(), and blender::render::hydra::pyrna_to_pointer().
| int pyrna_struct_as_ptr_or_null_parse | ( | PyObject * | o, |
| void * | p ) |
A version of pyrna_struct_as_ptr_parse that maps Python's None to PointerRNA_NULL.
Definition at line 8935 of file bpy_rna.cc.
References BLI_assert, BPy_StructRNA_Parse::ptr, pyrna_struct_as_ptr_or_null(), pyrna_struct_as_ptr_or_null_parse(), and BPy_StructRNA_Parse::type.
Referenced by bpy_context_temp_override(), and pyrna_struct_as_ptr_or_null_parse().
| int pyrna_struct_as_ptr_parse | ( | PyObject * | o, |
| void * | p ) |
Sets BPy_StructRNA_Parse.ptr to the value in the BPy_StructRNA.ptr (from o) or raise an error if the type isn't a BPy_StructRNA.
Use with #PyArg_ParseTuple's O& formatting.
Definition at line 8924 of file bpy_rna.cc.
References BLI_assert, BPy_StructRNA_Parse::ptr, pyrna_struct_as_ptr(), pyrna_struct_as_ptr_parse(), and BPy_StructRNA_Parse::type.
Referenced by pyrna_struct_as_ptr_parse().
| StructRNA * pyrna_struct_as_srna | ( | PyObject * | self, |
| const bool | parent, | ||
| const char * | error_prefix ) |
Definition at line 8849 of file bpy_rna.cc.
References bpy_intern_str_bl_rna, BPy_StructRNA_Check, BPy_StructRNA::ptr, and pyrna_struct_as_srna().
Referenced by py_msgbus_rna_key_from_py(), PYOP_wrap_macro_define(), pyrna_callback_classmethod_add(), pyrna_callback_classmethod_remove(), pyrna_register_class(), pyrna_struct_as_srna(), pyrna_unregister_class(), and srna_from_self().
|
static |
Definition at line 3558 of file bpy_rna.cc.
References BPy_StructRNA_Check, BPy_Wrap_SetMapItem(), BPy_StructRNA::ptr, pyrna_struct_ass_subscript(), PYRNA_STRUCT_CHECK_INT, rna_disallow_writes, rna_id_write_error(), RNA_struct_idprops(), RNA_struct_idprops_contains_datablock(), and RNA_struct_idprops_datablock_allowed().
Referenced by pyrna_struct_ass_subscript().
|
static |
Definition at line 4114 of file bpy_rna.cc.
References BLI_assert, bpy_intern_str_bl_rna, BPy_StructRNA::ptr, pyrna_struct_bl_rna_find_subclass_recursive(), RNA_struct_identifier(), and STREQ.
Referenced by pyrna_struct_bl_rna_find_subclass_recursive(), and pyrna_struct_bl_rna_get_subclass_py().
|
static |
Definition at line 4181 of file bpy_rna.cc.
References bpy_intern_str_bl_rna, blender::StringRefNull::c_str(), blender::bke::node_type_find(), blender::bke::node_type_find_alias(), BPy_StructRNA::ptr, pyrna_struct_bl_rna_get_subclass(), pyrna_struct_CreatePyObject(), blender::bke::bNodeType::rna_ext, RNA_pointer_create_discrete(), RNA_struct_identifier(), and ExtensionRNA::srna.
Referenced by pyrna_struct_bl_rna_get_subclass().
|
static |
Definition at line 4157 of file bpy_rna.cc.
References pyrna_struct_bl_rna_find_subclass_recursive(), pyrna_struct_bl_rna_get_subclass_py(), and ret.
Referenced by pyrna_struct_bl_rna_get_subclass_py().
|
static |
Definition at line 864 of file bpy_rna.cc.
References b, BPy_StructRNA::ptr, and pyrna_struct_compare().
Referenced by pyrna_struct_compare(), and pyrna_struct_richcmp().
|
static |
Definition at line 3455 of file bpy_rna.cc.
References IDP_GetPropertyFromGroup(), BPy_StructRNA::ptr, PYRNA_STRUCT_CHECK_INT, pyrna_struct_contains(), RNA_struct_idprops(), and RNA_struct_idprops_check().
Referenced by pyrna_struct_contains().
| PyObject * pyrna_struct_CreatePyObject | ( | PointerRNA * | ptr | ) |
Definition at line 8386 of file bpy_rna.cc.
References PointerRNA::data, BPy_StructRNA::ptr, pyrna_struct_CreatePyObject(), pyrna_struct_CreatePyObject_from_type(), pyrna_struct_Subtype(), RNA_struct_instance(), and PointerRNA::type.
Referenced by bpy_class_call(), BPy_init_modules(), bpy_lib_exit_lapp_context_items_cb(), bpy_pydriver_depsgraph_as_pyobject(), bpy_rna_data_context_enter(), BPY_rna_module(), bpy_utils_previews_load(), bpy_utils_previews_new(), blender::io::usd::PointerRNAToPython::convert(), Freestyle_getCurrentScene(), pyop_getrna_type(), PYOP_wrap_macro_define(), pyrna_driver_get_variable_value(), pyrna_driver_self_from_anim_rna(), pyrna_id_CreatePyObject(), pyrna_param_to_py(), pyrna_prop_collection_get(), pyrna_prop_collection_getattro(), pyrna_prop_collection_idprop_add(), pyrna_prop_collection_items(), pyrna_prop_collection_iter_next(), pyrna_prop_collection_subscript_int(), pyrna_prop_collection_subscript_slice(), pyrna_prop_collection_subscript_str(), pyrna_prop_collection_subscript_str_lib_pair(), pyrna_prop_to_py(), pyrna_py_to_prop(), pyrna_struct_as_instance(), pyrna_struct_bl_rna_get_subclass(), pyrna_struct_CreatePyObject(), pyrna_struct_CreatePyObject_with_primitive_support(), pyrna_struct_driver_add(), pyrna_struct_get_ancestors(), pyrna_struct_get_data(), pyrna_struct_get_id_data(), pyrna_struct_getattro(), pyrna_struct_path_resolve(), and pyrna_struct_type_recast().
|
static |
A lower level version of pyrna_struct_CreatePyObject, use this when type (tp) needs to be set to a non-standard value.
Definition at line 8317 of file bpy_rna.cc.
References BLI_assert, BPy_capsule_PointerRNA_identifier, BPY_LOG_RNA, CLOG_WARN, PointerRNA::owner_id, BPy_StructRNA::ptr, pyrna_struct_CreatePyObject_from_type(), pyrna_struct_Type, RNA_struct_identifier(), and PointerRNA::type.
Referenced by pyrna_struct_CreatePyObject(), pyrna_struct_CreatePyObject_from_type(), and pyrna_subtype_set_rna().
| PyObject * pyrna_struct_CreatePyObject_with_primitive_support | ( | PointerRNA * | ptr | ) |
Definition at line 8422 of file bpy_rna.cc.
References data, PointerRNA::data, PyC_UnicodeFromBytes(), pyrna_struct_CreatePyObject(), pyrna_struct_CreatePyObject_with_primitive_support(), and PointerRNA::type.
Referenced by bpy_app_generic_callback(), and pyrna_struct_CreatePyObject_with_primitive_support().
|
static |
Definition at line 7175 of file bpy_rna.cc.
References BLI_assert, IDP_FreeProperty(), BPy_StructRNA::ptr, and pyrna_struct_dealloc().
Referenced by pyrna_struct_dealloc().
|
static |
Definition at line 4337 of file bpy_rna.cc.
References BLI_freelistN(), BPy_StructRNA_CheckExact, CTX_data_dir_get(), LISTBASE_FOREACH, BPy_StructRNA::ptr, pyrna_dir_members_py(), pyrna_dir_members_rna(), PYRNA_STRUCT_CHECK_OBJ, pyrna_struct_dir(), and ret.
Referenced by pyrna_struct_dir().
|
static |
Definition at line 5280 of file bpy_rna.cc.
References BPy_IDGroup_WrapData(), IDP_GetPropertyFromGroup(), BPy_StructRNA::ptr, PYRNA_STRUCT_CHECK_OBJ, pyrna_struct_get(), RNA_struct_idprops(), and RNA_struct_idprops_check().
Referenced by pyrna_struct_get().
|
static |
Definition at line 4229 of file bpy_rna.cc.
References i, BPy_StructRNA::ptr, PYRNA_STRUCT_CHECK_OBJ, pyrna_struct_CreatePyObject(), pyrna_struct_get_ancestors(), ret, and RNA_pointer_create_from_ancestor().
Referenced by pyrna_struct_get_ancestors().
|
static |
Definition at line 5121 of file bpy_rna.cc.
References BPy_DummyPointerRNA::ptr, pyrna_struct_CreatePyObject(), and pyrna_struct_get_data().
Referenced by pyrna_struct_get_data().
|
static |
Definition at line 5106 of file bpy_rna.cc.
References BPy_DummyPointerRNA::ptr, pyrna_struct_CreatePyObject(), pyrna_struct_get_id_data(), and RNA_id_pointer_create().
Referenced by pyrna_struct_get_id_data().
|
static |
Definition at line 5130 of file bpy_rna.cc.
References BPy_PropertyRNA::prop, pyrna_struct_get_rna_type(), pyrna_struct_Subtype(), and RNA_pointer_create_discrete().
Referenced by pyrna_struct_get_rna_type().
|
static |
Definition at line 4482 of file bpy_rna.cc.
References BLI_assert_msg, C, CTX_data_get(), CTX_DATA_TYPE_COLLECTION, CTX_DATA_TYPE_INT64, CTX_DATA_TYPE_POINTER, CTX_DATA_TYPE_PROPERTY, CTX_DATA_TYPE_STRING, CTX_RESULT_MEMBER_NOT_FOUND, CTX_RESULT_NO_DATA, CTX_RESULT_OK, blender::StringRefBase::data(), PointerRNA::data, blender::StringRefBase::is_empty(), PointerRNA::owner_id, BPy_StructRNA::ptr, PyC_UnicodeFromStdStr(), pyrna_func_to_py(), pyrna_prop_to_py(), PYRNA_STRUCT_CHECK_OBJ_UNLESS, pyrna_struct_CreatePyObject(), pyrna_struct_getattro(), PyTuple_SET_ITEMS, ret, RNA_function_defined(), RNA_id_pointer_create(), RNA_path_from_ID_to_property(), RNA_path_from_ptr_to_property_index(), RNA_struct_find_function(), RNA_struct_find_property(), RNA_struct_idprops_check(), blender::StringRefBase::size(), STR_ELEM, and STREQ.
Referenced by pyrna_struct_getattro().
|
static |
Definition at line 1166 of file bpy_rna.cc.
References BPy_StructRNA::ptr, Py_HashPointer, and pyrna_struct_hash().
Referenced by pyrna_struct_hash().
|
static |
Definition at line 4462 of file bpy_rna.cc.
References IDP_FreeProperty(), BPy_StructRNA::ptr, PYRNA_STRUCT_CHECK_OBJ, pyrna_struct_id_properties_clear(), RNA_struct_idprops_check(), and RNA_struct_idprops_p().
Referenced by pyrna_struct_id_properties_clear().
|
static |
Definition at line 4384 of file bpy_rna.cc.
References BPy_IDGroup_Type, BPy_IDProperty::owner_id, BPy_IDProperty::parent, BPy_IDProperty::prop, BPy_StructRNA::ptr, PYRNA_STRUCT_CHECK_OBJ, pyrna_struct_id_properties_ensure(), RNA_struct_idprops(), and RNA_struct_idprops_check().
Referenced by pyrna_struct_id_properties_ensure().
|
static |
Definition at line 4417 of file bpy_rna.cc.
References BPy_IDPropertyUIManager_Type, IDP_GetPropertyFromGroup(), IDP_ui_data_supported(), BPy_IDPropertyUIManager::property, BPy_StructRNA::ptr, PYRNA_STRUCT_CHECK_OBJ, pyrna_struct_id_properties_ui(), RNA_struct_idprops(), and RNA_struct_idprops_check().
Referenced by pyrna_struct_id_properties_ui().
|
static |
Definition at line 7118 of file bpy_rna.cc.
References BLI_assert, BPy_capsule_PointerRNA_identifier, BPy_StructRNA::ptr, pyrna_struct_init(), and pyrna_struct_Type.
Referenced by pyrna_struct_init().
|
static |
Definition at line 3770 of file bpy_rna.cc.
References PROP_HIDDEN, BPy_StructRNA::ptr, PYRNA_STRUCT_CHECK_OBJ, pyrna_struct_is_property_hidden(), RNA_property_flag(), RNA_struct_find_property(), and RNA_struct_identifier().
Referenced by pyrna_struct_is_property_hidden().
|
static |
Definition at line 3836 of file bpy_rna.cc.
References BPy_StructRNA::ptr, PYRNA_STRUCT_CHECK_OBJ, pyrna_struct_is_property_overridable_library(), RNA_property_overridable_get(), RNA_struct_find_property(), and RNA_struct_identifier().
Referenced by pyrna_struct_is_property_overridable_library().
|
static |
Definition at line 3803 of file bpy_rna.cc.
References BPy_StructRNA::ptr, PYRNA_STRUCT_CHECK_OBJ, pyrna_struct_is_property_readonly(), RNA_property_editable(), RNA_struct_find_property(), and RNA_struct_identifier().
Referenced by pyrna_struct_is_property_readonly().
|
static |
Definition at line 3693 of file bpy_rna.cc.
References BPy_StructRNA::ptr, PY_ARG_PARSER_HEAD_COMPAT, PyC_ParseBool(), PYRNA_STRUCT_CHECK_OBJ, pyrna_struct_is_property_set(), RNA_property_is_set_ex(), RNA_struct_find_property(), and RNA_struct_identifier().
Referenced by pyrna_struct_is_property_set().
|
static |
Definition at line 3635 of file bpy_rna.cc.
References BPy_Wrap_GetItems_View_WithID(), BPy_StructRNA::ptr, PYRNA_STRUCT_CHECK_OBJ, pyrna_struct_items(), RNA_struct_idprops(), and RNA_struct_idprops_check().
Referenced by pyrna_struct_items().
|
static |
Definition at line 3610 of file bpy_rna.cc.
References BPy_Wrap_GetKeys_View_WithID(), BPy_StructRNA::ptr, PYRNA_STRUCT_CHECK_OBJ, pyrna_struct_keys(), RNA_struct_idprops(), and RNA_struct_idprops_check().
Referenced by pyrna_struct_keys().
|
static |
Definition at line 4712 of file bpy_rna.cc.
References BPy_PropDeferred_CheckTypeExact, deferred_register_prop(), pyrna_struct_meta_idprop_setattro(), pyrna_write_check(), ret, RNA_def_property_free_identifier(), RNA_struct_type_find_property_no_base(), and srna_from_self().
Referenced by pyrna_struct_meta_idprop_setattro().
|
static |
Definition at line 7073 of file bpy_rna.cc.
References BLI_assert, BPy_StructRNA::ptr, pyrna_struct_new(), and pyrna_struct_Type.
Referenced by pyrna_struct_new().
|
static |
Definition at line 3967 of file bpy_rna.cc.
References BPy_StructRNA::ptr, PyC_UnicodeFromStdStr(), PYRNA_STRUCT_CHECK_OBJ, pyrna_struct_path_from_id(), RNA_path_from_ID_to_property(), RNA_path_from_ID_to_struct(), RNA_struct_find_property(), and RNA_struct_identifier().
Referenced by pyrna_struct_path_from_id().
|
static |
Definition at line 3909 of file bpy_rna.cc.
References BPy_StructRNA::ptr, pyrna_array_index(), pyrna_prop_CreatePyObject(), pyrna_prop_to_py(), PYRNA_STRUCT_CHECK_OBJ, pyrna_struct_CreatePyObject(), pyrna_struct_path_resolve(), RNA_path_resolve_full_maybe_null(), RNA_property_array_length(), and RNA_struct_identifier().
Referenced by pyrna_struct_path_resolve().
|
static |
Definition at line 5327 of file bpy_rna.cc.
References BPy_IDGroup_MapDataToPy(), IDP_FreeFromGroup(), IDP_GetPropertyFromGroup(), BPy_StructRNA::ptr, PYRNA_STRUCT_CHECK_OBJ, pyrna_struct_pop(), ret, RNA_struct_idprops(), RNA_struct_idprops_check(), and UNLIKELY.
Referenced by pyrna_struct_pop().
|
static |
Definition at line 3871 of file bpy_rna.cc.
References BPy_StructRNA::ptr, PYRNA_STRUCT_CHECK_OBJ, pyrna_struct_property_overridable_library_set(), RNA_property_overridable_library_set(), RNA_struct_find_property(), and RNA_struct_identifier().
Referenced by pyrna_struct_property_overridable_library_set().
|
static |
Definition at line 3735 of file bpy_rna.cc.
References BPy_StructRNA::ptr, PYRNA_STRUCT_CHECK_OBJ, pyrna_struct_property_unset(), RNA_property_unset(), RNA_struct_find_property(), and RNA_struct_identifier().
Referenced by pyrna_struct_property_unset().
|
static |
Definition at line 976 of file bpy_rna.cc.
References BKE_idtype_idcode_to_name_plural(), BLI_assert, DEG_get_original(), ID::flag, G_MAIN, GS, ID_FLAG_EMBEDDED_DATA, ID::name, BPy_StructRNA::ptr, PYRNA_STRUCT_IS_VALID, pyrna_struct_repr(), pyrna_struct_str(), ret, RNA_path_from_real_ID_to_struct(), RNA_struct_identifier(), and RNA_struct_is_ID().
Referenced by pyrna_struct_repr().
|
static |
Definition at line 877 of file bpy_rna.cc.
References ATTR_FALLTHROUGH, b, BPy_StructRNA_Check, pyrna_struct_compare(), and pyrna_struct_richcmp().
Referenced by pyrna_struct_richcmp().
|
static |
Definition at line 4776 of file bpy_rna.cc.
References C, CTX_data_get(), CTX_RESULT_OK, BPy_StructRNA::ptr, pyrna_py_to_prop(), PYRNA_STRUCT_CHECK_INT, pyrna_struct_setattro(), rna_disallow_writes, rna_id_write_error(), RNA_property_editable_flag(), RNA_property_identifier(), RNA_struct_find_property(), and RNA_struct_identifier().
Referenced by pyrna_struct_setattro().
|
static |
Definition at line 940 of file bpy_rna.cc.
References DEG_get_original(), MEM_freeN(), BPy_StructRNA::ptr, PYRNA_STRUCT_IS_VALID, pyrna_struct_str(), ret, RNA_struct_identifier(), and RNA_struct_name_get_alloc().
Referenced by pyrna_struct_repr(), and pyrna_struct_str().
|
static |
Definition at line 3523 of file bpy_rna.cc.
References BPy_IDGroup_WrapData(), IDP_GetPropertyFromGroup(), BPy_StructRNA::ptr, PYRNA_STRUCT_CHECK_OBJ, pyrna_struct_subscript(), RNA_struct_idprops(), and RNA_struct_idprops_check().
Referenced by pyrna_struct_subscript().
|
static |
Definition at line 8304 of file bpy_rna.cc.
References pyrna_srna_Subtype(), pyrna_struct_Subtype(), and srna_from_ptr().
Referenced by bpy_types_module_getattro(), pyrna_alloc_types(), pyrna_dir_members_py(), pyrna_prop_collection_getattro(), pyrna_struct_CreatePyObject(), pyrna_struct_get_rna_type(), and pyrna_struct_Subtype().
| void pyrna_struct_type_extend_capi | ( | StructRNA * | srna, |
| PyMethodDef * | method, | ||
| PyGetSetDef * | getset ) |
Definition at line 10354 of file bpy_rna.cc.
References BLI_assert, pyrna_srna_Subtype(), pyrna_struct_type_extend_capi(), and UNUSED_VARS_NDEBUG.
Referenced by BPY_rna_types_extend_capi(), and pyrna_struct_type_extend_capi().
|
static |
Definition at line 4102 of file bpy_rna.cc.
References BPy_StructRNA::ptr, PYRNA_STRUCT_CHECK_OBJ, pyrna_struct_CreatePyObject(), pyrna_struct_type_recast(), and RNA_pointer_recast().
Referenced by pyrna_struct_type_recast().
| int pyrna_struct_validity_check | ( | const BPy_StructRNA * | pysrna | ) |
Definition at line 158 of file bpy_rna.cc.
References BPy_StructRNA::ptr, pyrna_struct_validity_check(), and pyrna_struct_validity_exception_only().
Referenced by pyrna_py_to_prop(), and pyrna_struct_validity_check().
| int pyrna_struct_validity_check_only | ( | const BPy_StructRNA * | pysrna | ) |
Definition at line 144 of file bpy_rna.cc.
References BPy_StructRNA::ptr, and pyrna_struct_validity_check_only().
Referenced by pyrna_struct_validity_check_only().
| void pyrna_struct_validity_exception_only | ( | const BPy_StructRNA * | pysrna | ) |
Definition at line 152 of file bpy_rna.cc.
References pyrna_struct_validity_exception_only().
Referenced by pyrna_struct_validity_check(), and pyrna_struct_validity_exception_only().
|
static |
Definition at line 3660 of file bpy_rna.cc.
References BPy_Wrap_GetValues_View_WithID(), BPy_StructRNA::ptr, PYRNA_STRUCT_CHECK_OBJ, pyrna_struct_values(), RNA_struct_idprops(), and RNA_struct_idprops_check().
Referenced by pyrna_struct_values().
|
static |
Definition at line 8030 of file bpy_rna.cc.
References BLI_assert, bpy_intern_str_bl_rna, GHash::flag, FUNC_NO_SELF, FUNC_REGISTER, LISTBASE_FOREACH, PyC_ObSpit(), pyrna_func_to_py(), pyrna_srna_Subtype(), pyrna_struct_CreatePyObject_from_type(), pyrna_subtype_set_rna(), RNA_function_flag(), RNA_function_identifier(), RNA_pointer_create_discrete(), RNA_struct_instance(), RNA_struct_py_type_get(), RNA_struct_py_type_set(), and RNA_struct_type_functions().
Referenced by BPY_rna_types_finalize_external_types(), pyrna_register_class(), pyrna_srna_Subtype(), and pyrna_subtype_set_rna().
|
static |
Definition at line 10227 of file bpy_rna.cc.
References BPY_context_get(), bpy_intern_str_bl_rna, bpy_intern_str_unregister, C, CTX_data_main(), StructRNA::flag, G, G_DEBUG_PYTHON, PyObject_GetOptionalAttr, pyrna_srna_contains_pointer_prop_srna(), pyrna_struct_as_srna(), pyrna_unregister_class(), pyrna_write_check(), ret, RNA_blender_rna_pointer_create(), RNA_PROP_BEGIN, RNA_PROP_END, RNA_struct_find_property(), RNA_struct_identifier(), RNA_struct_unregister(), STRUCT_RUNTIME, and UNLIKELY.
Referenced by pyrna_unregister_class().
| bool pyrna_write_check | ( | ) |
Definition at line 406 of file bpy_rna.cc.
References BLI_assert, pyrna_write_check(), and rna_disallow_writes.
Referenced by bpy_msgbus_notify(), bpy_prop_gil_rna_writable_begin(), bpy_prop_update_fn(), pyop_call(), pyrna_register_class(), pyrna_struct_meta_idprop_setattro(), pyrna_unregister_class(), and pyrna_write_check().
| void pyrna_write_set | ( | bool | val | ) |
Definition at line 413 of file bpy_rna.cc.
References BLI_assert, pyrna_write_set(), and rna_disallow_writes.
Referenced by bpy_msgbus_notify(), bpy_prop_gil_rna_writable_end(), bpy_prop_update_fn(), and pyrna_write_set().
|
static |
Definition at line 9193 of file bpy_rna.cc.
References FUNC_NO_SELF, FUNC_USE_SELF_TYPE, LISTBASE_FOREACH, PARM_OUTPUT, PARM_PYFUNC_REGISTER_OPTIONAL, RNA_function_defined_parameters(), RNA_function_flag(), rna_function_register_arg_count(), and RNA_parameter_flag().
Referenced by bpy_class_validate_recursive(), and rna_function_register_arg_count().
|
static |
Definition at line 369 of file bpy_rna.cc.
References BKE_idtype_idcode_to_name(), BLI_assert, ELEM, GS, ID_SCR, ID_WM, ID_WS, ID::name, PointerRNA::owner_id, rna_id_write_error(), RNA_struct_identifier(), and PointerRNA::type.
Referenced by mathutils_rna_matrix_set(), mathutils_rna_vector_set(), mathutils_rna_vector_set_index(), pyrna_prop_collection_idprop_add(), pyrna_prop_collection_idprop_clear(), pyrna_prop_collection_idprop_move(), pyrna_prop_collection_idprop_remove(), pyrna_prop_collection_setattro(), pyrna_struct_ass_subscript(), pyrna_struct_setattro(), and rna_id_write_error().
|
static |
Use to replace PyDict_GetItemString() when the overhead of converting a string into a Python unicode is higher than a non hash lookup. works on small dict's such as keyword args.
Definition at line 6534 of file bpy_rna.cc.
References small_dict_get_item_string().
Referenced by pyrna_func_call(), and small_dict_get_item_string().
|
static |
Use for sub-typing so we know which SRNA is used for a PointerRNA.
Definition at line 8292 of file bpy_rna.cc.
References PointerRNA::data, srna_from_ptr(), and PointerRNA::type.
Referenced by BPY_rna_types_finalize_external_types(), pyrna_struct_Subtype(), and srna_from_ptr().
| StructRNA * srna_from_self | ( | PyObject * | self, |
| const char * | error_prefix ) |
Definition at line 8948 of file bpy_rna.cc.
References pyrna_struct_as_srna(), and srna_from_self().
Referenced by bpy_prop_deferred_data_or_srna(), BPy_RemoveProperty(), deferred_register_prop(), pointer_type_from_py(), pyrna_struct_meta_idprop_setattro(), and srna_from_self().
|
static |
'Name' identifier for PyCapsule objects used internally by bpy_rna.cc to pass a PointerRNA pointer as argument when creating BPy_StructRNA objects.
Definition at line 100 of file bpy_rna.cc.
Referenced by pyrna_struct_CreatePyObject_from_type(), and pyrna_struct_init().
| BPy_StructRNA* bpy_context_module = nullptr |
Definition at line 94 of file bpy_rna.cc.
Referenced by BPY_context_get(), BPY_context_set(), BPy_init_modules(), bpy_prop_enum_itemf_fn(), bpy_prop_string_visit_for_search_fn(), and bpy_prop_update_fn().
|
static |
'Name' identifier for PyCapsule objects used internally by bpy_rna.cc to pass a BPy_FunctionPointerRNA_Reference pointer as argument when creating BPy_FunctionRNA objects.
Definition at line 123 of file bpy_rna.cc.
Referenced by pyrna_func_to_py(), and pyrna_function_init().
|
static |
'Name' identifier for PyCapsule objects used internally by bpy_rna.cc to pass a BPy_PropertyPointerRNA_Reference pointer as argument when creating BPy_PropertyRNA and similar objects.
Definition at line 112 of file bpy_rna.cc.
Referenced by pyrna_prop_collection_iter_CreatePyObject(), pyrna_prop_collection_iter_init(), pyrna_prop_CreatePyObject(), pyrna_property_array_init(), and pyrna_property_init().
|
static |
Definition at line 8116 of file bpy_rna.cc.
Referenced by BPY_rna_types_finalize_external_types(), and pyrna_srna_ExternalType().
|
static |
Definition at line 8746 of file bpy_rna.cc.
Referenced by BPY_rna_types().
|
static |
Definition at line 8715 of file bpy_rna.cc.
|
static |
Definition at line 596 of file bpy_rna.cc.
Referenced by BPY_rna_init().
|
static |
Definition at line 454 of file bpy_rna.cc.
Referenced by BPY_rna_init(), and pyrna_math_object_from_array().
|
static |
Definition at line 654 of file bpy_rna.cc.
Referenced by BPY_rna_init().
|
static |
Definition at line 605 of file bpy_rna.cc.
Referenced by BPY_rna_init(), and pyrna_math_object_from_array().
| PyMethodDef meth_bpy_owner_id_get |
Definition at line 10441 of file bpy_rna.cc.
Referenced by BPy_init_modules().
| PyMethodDef meth_bpy_owner_id_set |
Definition at line 10447 of file bpy_rna.cc.
Referenced by BPy_init_modules().
| PyMethodDef meth_bpy_register_class |
Definition at line 10005 of file bpy_rna.cc.
Referenced by BPy_init_modules().
| PyMethodDef meth_bpy_unregister_class |
Definition at line 10221 of file bpy_rna.cc.
Referenced by BPy_init_modules().
|
static |
Definition at line 5166 of file bpy_rna.cc.
| PyTypeObject pyrna_func_Type |
Definition at line 7886 of file bpy_rna.cc.
Referenced by BPY_rna_init(), BPY_rna_types(), and pyrna_func_to_py().
|
static |
Definition at line 3355 of file bpy_rna.cc.
|
static |
Definition at line 3368 of file bpy_rna.cc.
|
static |
Definition at line 3480 of file bpy_rna.cc.
|
static |
Definition at line 6281 of file bpy_rna.cc.
| PyTypeObject pyrna_prop_array_Type |
Definition at line 7303 of file bpy_rna.cc.
Referenced by BPY_rna_init(), BPY_rna_types(), pyrna_prop_CreatePyObject(), and pyrna_property_array_init().
|
static |
Definition at line 3361 of file bpy_rna.cc.
|
static |
Definition at line 3380 of file bpy_rna.cc.
|
static |
Definition at line 3494 of file bpy_rna.cc.
|
static |
Definition at line 6319 of file bpy_rna.cc.
|
static |
Definition at line 7416 of file bpy_rna.cc.
Referenced by BPY_rna_init(), BPY_rna_types(), and pyrna_prop_CreatePyObject().
|
static |
Definition at line 7654 of file bpy_rna.cc.
Referenced by BPY_rna_init(), and pyrna_prop_collection_iter_CreatePyObject().
|
static |
Definition at line 6294 of file bpy_rna.cc.
| PyTypeObject pyrna_prop_collection_Type |
Definition at line 7359 of file bpy_rna.cc.
Referenced by BPY_rna_init(), BPY_rna_types(), pyrna_prop_CreatePyObject(), and pyrna_py_to_prop().
|
static |
Definition at line 5140 of file bpy_rna.cc.
|
static |
Definition at line 6270 of file bpy_rna.cc.
| PyTypeObject pyrna_prop_Type |
Definition at line 7247 of file bpy_rna.cc.
Referenced by BPY_rna_init(), BPY_rna_types(), pyrna_prop_CreatePyObject(), pyrna_property_init(), and pyrna_property_new().
|
static |
Definition at line 3593 of file bpy_rna.cc.
|
static |
Definition at line 3509 of file bpy_rna.cc.
|
static |
Definition at line 5155 of file bpy_rna.cc.
| PyTypeObject pyrna_struct_meta_idprop_Type |
Sub-classes of pyrna_struct_Type which support idprop definitions use this as a meta-class.
Definition at line 6916 of file bpy_rna.cc.
Referenced by BPY_rna_init(), BPY_rna_types(), and pyrna_srna_Subtype().
|
static |
Definition at line 6160 of file bpy_rna.cc.
| PyTypeObject pyrna_struct_Type |
Definition at line 7008 of file bpy_rna.cc.
Referenced by BPY_rna_init(), BPY_rna_types(), BPY_rna_types_finalize_external_types(), Freestyle_evaluateColorRamp(), Freestyle_evaluateCurveMappingF(), pyrna_deferred_register_class_recursive(), pyrna_srna_PyBase(), pyrna_struct_CreatePyObject_from_type(), pyrna_struct_init(), and pyrna_struct_new().
|
thread_localstatic |
Definition at line 367 of file bpy_rna.cc.
Referenced by bpy_class_call(), mathutils_rna_matrix_set(), mathutils_rna_vector_set(), mathutils_rna_vector_set_index(), pyrna_prop_collection_idprop_add(), pyrna_prop_collection_idprop_clear(), pyrna_prop_collection_idprop_move(), pyrna_prop_collection_idprop_remove(), pyrna_prop_collection_setattro(), pyrna_struct_ass_subscript(), pyrna_struct_setattro(), pyrna_write_check(), and pyrna_write_set().
|
static |
Definition at line 8592 of file bpy_rna.cc.
Referenced by BPY_rna_module(), and BPY_update_rna_module().