|
Blender V5.0
|
Go to the source code of this file.
Classes | |
| struct | BPy_DummyPointerRNA |
| struct | BPy_StructRNA |
| struct | BPy_PropertyRNA |
| struct | BPy_PropertyArrayRNA |
| struct | BPy_PropertyCollectionIterRNA |
| struct | BPy_FunctionRNA |
| struct | BPy_StructRNA_Parse |
Macros | |
| #define | USE_PYRNA_ITER |
| #define | BPy_StructRNA_Check(v) |
| #define | BPy_StructRNA_CheckExact(v) |
| #define | BPy_PropertyRNA_Check(v) |
| #define | BPy_PropertyRNA_CheckExact(v) |
| #define | PYRNA_STRUCT_CHECK_OBJ(obj) |
| #define | PYRNA_STRUCT_CHECK_INT(obj) |
| #define | PYRNA_PROP_CHECK_OBJ(obj) |
| #define | PYRNA_PROP_CHECK_INT(obj) |
| #define | PYRNA_STRUCT_CHECK_OBJ_UNLESS(obj, unless) |
| #define | PYRNA_STRUCT_IS_VALID(pysrna) |
| #define | PYRNA_PROP_IS_VALID(pysrna) |
Variables | |
| PyTypeObject | pyrna_struct_meta_idprop_Type |
| PyTypeObject | pyrna_struct_Type |
| PyTypeObject | pyrna_prop_Type |
| PyTypeObject | pyrna_prop_array_Type |
| PyTypeObject | pyrna_prop_collection_Type |
| PyTypeObject | pyrna_func_Type |
| PyMethodDef | meth_bpy_register_class |
| PyMethodDef | meth_bpy_unregister_class |
| PyMethodDef | meth_bpy_owner_id_set |
| PyMethodDef | meth_bpy_owner_id_get |
| BPy_StructRNA * | bpy_context_module |
| #define BPy_PropertyRNA_Check | ( | v | ) |
Definition at line 75 of file bpy_rna.hh.
Referenced by py_msgbus_rna_key_from_py(), pyrna_dir_members_py(), pyrna_prop_collection_string_subscript_supported_or_error(), and pyrna_prop_richcmp().
| #define BPy_PropertyRNA_CheckExact | ( | v | ) |
Definition at line 76 of file bpy_rna.hh.
Referenced by pyrna_prop_dir().
| #define BPy_StructRNA_Check | ( | v | ) |
Definition at line 73 of file bpy_rna.hh.
Referenced by BPY_context_member_get(), py_msgbus_rna_key_from_py(), py_rna_gizmo_parse(), pyrna_bmain_FromPyObject(), pyrna_driver_is_equal_anim_rna(), pyrna_id_CheckPyObject(), pyrna_prop_collection_subscript_is_valid_or_error(), pyrna_prop_collection_type_check(), pyrna_py_to_prop(), pyrna_struct_as_ptr(), pyrna_struct_as_srna(), pyrna_struct_ass_subscript(), and pyrna_struct_richcmp().
| #define BPy_StructRNA_CheckExact | ( | v | ) |
Definition at line 74 of file bpy_rna.hh.
Referenced by pyrna_struct_dir().
| #define PYRNA_PROP_CHECK_INT | ( | obj | ) |
Definition at line 94 of file bpy_rna.hh.
Referenced by mathutils_rna_generic_check(), mathutils_rna_matrix_get(), mathutils_rna_matrix_set(), mathutils_rna_vector_get(), mathutils_rna_vector_get_index(), mathutils_rna_vector_set(), mathutils_rna_vector_set_index(), prop_subscript_ass_array_int(), py_msgbus_rna_key_from_py(), pyrna_prop_array_ass_subscript(), pyrna_prop_array_bool(), pyrna_prop_array_length(), pyrna_prop_collection_ass_subscript(), pyrna_prop_collection_ass_subscript_int(), pyrna_prop_collection_bool(), and pyrna_prop_collection_length().
| #define PYRNA_PROP_CHECK_OBJ | ( | obj | ) |
Definition at line 89 of file bpy_rna.hh.
Referenced by pyrna_prop_array_foreach_get(), pyrna_prop_array_foreach_set(), pyrna_prop_array_iter(), pyrna_prop_array_subscript(), pyrna_prop_array_subscript_int(), pyrna_prop_array_to_py_index(), pyrna_prop_collection_find(), pyrna_prop_collection_foreach_get(), pyrna_prop_collection_foreach_set(), pyrna_prop_collection_get(), pyrna_prop_collection_subscript(), pyrna_prop_collection_subscript_int(), pyrna_prop_collection_subscript_slice(), pyrna_prop_collection_subscript_str(), pyrna_prop_repr_ex(), and pyrna_prop_str().
| #define PYRNA_PROP_IS_VALID | ( | pysrna | ) |
Definition at line 111 of file bpy_rna.hh.
| #define PYRNA_STRUCT_CHECK_INT | ( | obj | ) |
Definition at line 83 of file bpy_rna.hh.
Referenced by py_msgbus_rna_key_from_py(), pyrna_struct_ass_subscript(), pyrna_struct_contains(), and pyrna_struct_setattro().
| #define PYRNA_STRUCT_CHECK_OBJ | ( | obj | ) |
Definition at line 78 of file bpy_rna.hh.
Referenced by pyrna_bmain_FromPyObject(), pyrna_struct_as_ptr(), pyrna_struct_dir(), pyrna_struct_driver_add(), pyrna_struct_driver_remove(), pyrna_struct_get(), pyrna_struct_get_ancestors(), pyrna_struct_id_properties_clear(), pyrna_struct_id_properties_ensure(), pyrna_struct_id_properties_ui(), pyrna_struct_is_property_hidden(), pyrna_struct_is_property_overridable_library(), pyrna_struct_is_property_readonly(), pyrna_struct_is_property_set(), pyrna_struct_items(), pyrna_struct_keyframe_delete(), pyrna_struct_keyframe_insert(), pyrna_struct_keys(), pyrna_struct_path_from_id(), pyrna_struct_path_from_module(), pyrna_struct_path_resolve(), pyrna_struct_pop(), pyrna_struct_property_overridable_library_set(), pyrna_struct_property_unset(), pyrna_struct_subscript(), pyrna_struct_type_recast(), and pyrna_struct_values().
| #define PYRNA_STRUCT_CHECK_OBJ_UNLESS | ( | obj, | |
| unless ) |
Definition at line 100 of file bpy_rna.hh.
Referenced by pyrna_struct_getattro().
| #define PYRNA_STRUCT_IS_VALID | ( | pysrna | ) |
Definition at line 110 of file bpy_rna.hh.
Referenced by pyrna_struct_repr(), and pyrna_struct_str().
| #define USE_PYRNA_ITER |
Definition at line 56 of file bpy_rna.hh.
| void BPY_rna_exit | ( | ) |
Definition at line 8680 of file bpy_rna.cc.
References BLI_ghash_free(), BLI_ghash_len(), BLI_ghashIterator_getKey(), GHASH_ITER, ID::name, and printf.
Referenced by BPY_python_end().
| void BPY_rna_init | ( | ) |
Definition at line 8627 of file bpy_rna.cc.
References BLI_assert, BLI_ghash_ptr_new(), 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().
|
nodiscard |
Definition at line 8703 of file bpy_rna.cc.
References G_MAIN, BPy_StructRNA::ptr, ptr, pyrna_struct_CreatePyObject(), RNA_main_pointer_create(), and rna_module_ptr.
Referenced by BPy_init_modules(), and BPY_modules_update().
|
nodiscard |
Definition at line 8868 of file bpy_rna.cc.
References ARRAY_SIZE, 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(), and BPY_modules_update().
| void BPY_rna_types_dict_set | ( | PyObject * | dict | ) |
Set the _bpy_types.py modules __dict__, needed for instancing RNA types.
Definition at line 8237 of file bpy_rna.cc.
References bpy_types_dict.
Referenced by BPy_init_modules().
| void BPY_rna_types_finalize_external_types | ( | PyObject * | submodule | ) |
Definition at line 8898 of file bpy_rna.cc.
References BLI_assert, BLI_assert_msg, BPY_LOG_RNA, 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().
| void BPY_update_rna_module | ( | ) |
Definition at line 8715 of file bpy_rna.cc.
References G_MAIN, RNA_main_pointer_create(), and rna_module_ptr.
Referenced by BPY_driver_exec(), and BPY_modules_update().
| void pyrna_alloc_types | ( | ) |
Definition at line 10052 of file bpy_rna.cc.
References ptr, Py_DECREF(), pyrna_struct_Subtype(), RNA_blender_rna_pointer_create(), RNA_PROP_BEGIN, RNA_PROP_END, and RNA_struct_find_property().
Referenced by BPY_python_start().
|
nodiscard |
Definition at line 992 of file bpy_rna_array.cc.
References i, len, PROP_BOOLEAN, PROP_FLOAT, PROP_INT, ptr, PyC_Long_AsBool(), RNA_property_array_dimension(), RNA_property_array_length(), RNA_property_boolean_get_array(), RNA_property_float_get_array(), RNA_property_int_get_array(), and RNA_property_type().
Referenced by pyrna_prop_array_contains().
|
nodiscard |
Definition at line 867 of file bpy_rna_array.cc.
References PROP_BOOLEAN, PROP_FLOAT, PROP_INT, ptr, RNA_property_boolean_get_index(), RNA_property_float_get_index(), RNA_property_int_get_index(), and RNA_property_type().
Referenced by pyrna_driver_get_variable_value(), pyrna_py_from_array_index(), and pyrna_struct_path_resolve().
|
nodiscard |
Definition at line 9281 of file bpy_rna.cc.
References pyrna_deferred_register_class_from_type_hints(), pyrna_deferred_register_class_recursive(), and RNA_struct_system_idprops_register_check().
Referenced by gizmo_properties_init(), gizmogroup_properties_init(), operator_properties_init(), and pyrna_register_class().
|
nodiscard |
Definition at line 8622 of file bpy_rna.cc.
Referenced by pyrna_id_FromPyObject().
|
nodiscard |
Definition at line 8601 of file bpy_rna.cc.
|
nodiscard |
Definition at line 8611 of file bpy_rna.cc.
| void pyrna_invalidate | ( | BPy_DummyPointerRNA * | self | ) |
Definition at line 178 of file bpy_rna.cc.
References self.
Referenced by BPY_DECREF_RNA_INVALIDATE().
|
nodiscard |
Definition at line 748 of file bpy_rna.cc.
References col, Color_CreatePyObject(), Color_CreatePyObject_cb(), Euler_CreatePyObject(), Euler_CreatePyObject_cb(), EULER_ORDER_XYZ, 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, ptr, Py_DECREF(), 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_py_from_array().
|
nodiscard |
Definition at line 8553 of file bpy_rna.cc.
References BLI_assert, BPy_PropertyPointerRNA_capsule_identifier, PROP_COLLECTION, PROP_IDPROPERTY, BPy_PropertyRNA::ptr, ptr, Py_DECREF(), pyrna_prop_array_Type, pyrna_prop_collection_idprop_Type, pyrna_prop_collection_Type, pyrna_prop_Type, RNA_property_array_check(), RNA_property_flag(), and RNA_property_type().
Referenced by pyrna_math_object_from_array(), pyrna_prop_to_py(), pyrna_py_from_array(), pyrna_py_from_array_index(), and pyrna_struct_path_resolve().
|
nodiscard |
Definition at line 1445 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, ptr, PyC_UnicodeFromBytesAndSize(), pyrna_enum_to_py(), pyrna_prop_CreatePyObject(), pyrna_prop_warn_deprecated(), pyrna_py_from_array(), pyrna_struct_CreatePyObject(), ret, RNA_property_array_check(), RNA_property_boolean_get(), RNA_property_deprecated(), 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_struct_getattro(), and pyrna_struct_path_resolve().
|
nodiscard |
Definition at line 166 of file bpy_rna.cc.
References RNA_property_identifier(), and self.
|
nodiscard |
Definition at line 978 of file bpy_rna_array.cc.
References ptr, pyrna_math_object_from_array(), pyrna_prop_CreatePyObject(), and ret.
Referenced by pyrna_prop_to_py().
|
nodiscard |
Definition at line 929 of file bpy_rna_array.cc.
References BPY_LOG_RNA, CLOG_WARN, i, len, MAX_ARRAY_DIMENSION, ptr, pyrna_array_index(), pyrna_prop_CreatePyObject(), ret, RNA_property_array_dimension(), RNA_property_multi_array_length(), and self.
Referenced by pyrna_prop_array_to_py_index().
|
nodiscard |
Definition at line 733 of file bpy_rna_array.cc.
References convert_item_init_bool(), convert_item_init_float(), convert_item_init_int(), PROP_BOOLEAN, PROP_FLOAT, PROP_INT, ptr, py_bool_check(), py_float_check(), py_int_check(), py_to_array(), ret, RNA_property_boolean_set_array(), RNA_property_float_set_array(), RNA_property_int_set_array(), and RNA_property_type().
Referenced by pyrna_py_to_prop().
|
nodiscard |
Definition at line 796 of file bpy_rna_array.cc.
References bool_set_index(), convert_item_init_bool(), convert_item_init_float(), convert_item_init_int(), float_set_index(), int_set_index(), PROP_BOOLEAN, PROP_FLOAT, PROP_INT, ptr, py_bool_check(), py_float_check(), py_int_check(), py_to_array_index(), ret, and RNA_property_type().
Referenced by pyrna_py_to_prop_array_index().
|
nodiscard |
Definition at line 1530 of file bpy_rna.cc.
References pos, ptr, pyrna_py_to_prop(), RNA_property_identifier(), RNA_STRUCT_BEGIN, RNA_STRUCT_END, RNA_struct_find_property(), and STREQ.
Referenced by pyop_as_string(), pyop_call(), and pyrna_py_to_prop().
| const PointerRNA * pyrna_struct_as_ptr | ( | PyObject * | py_obj, |
| const StructRNA * | srna ) |
Definition at line 9012 of file bpy_rna.cc.
References BPy_StructRNA_Check, BPy_StructRNA::ptr, PYRNA_STRUCT_CHECK_OBJ, RNA_struct_identifier(), and RNA_struct_is_a().
Referenced by bpy_context_temp_override(), 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 9026 of file bpy_rna.cc.
References PointerRNA_NULL, and pyrna_struct_as_ptr().
Referenced by pyrna_struct_as_ptr_or_null_parse(), and blender::render::hydra::pyrna_to_pointer().
|
nodiscard |
A version of pyrna_struct_as_ptr_parse that maps Python's None to PointerRNA_NULL.
Definition at line 9045 of file bpy_rna.cc.
References BLI_assert, BPy_StructRNA_Parse::ptr, pyrna_struct_as_ptr_or_null(), and BPy_StructRNA_Parse::type.
Referenced by bpy_context_temp_override().
|
nodiscard |
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 9034 of file bpy_rna.cc.
References BLI_assert, BPy_StructRNA_Parse::ptr, pyrna_struct_as_ptr(), and BPy_StructRNA_Parse::type.
|
nodiscard |
Definition at line 8959 of file bpy_rna.cc.
References bpy_intern_str_bl_rna, BPy_StructRNA_Check, BPy_StructRNA::ptr, Py_DECREF(), and self.
Referenced by py_msgbus_rna_key_from_py(), PYOP_wrap_macro_define(), pyrna_callback_classmethod_add(), pyrna_callback_classmethod_remove(), pyrna_register_class(), pyrna_unregister_class(), and srna_from_self().
|
nodiscard |
Definition at line 8496 of file bpy_rna.cc.
References BPy_StructRNA::ptr, ptr, Py_DECREF(), pyrna_struct_CreatePyObject_from_type(), pyrna_struct_Subtype(), and RNA_struct_instance().
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(), foreach_id_file_path_foreach_callback(), 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_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().
|
nodiscard |
Definition at line 8532 of file bpy_rna.cc.
References data, ptr, PyC_UnicodeFromBytes(), and pyrna_struct_CreatePyObject().
Referenced by bpy_app_generic_callback().
| void pyrna_struct_type_extend_capi | ( | StructRNA * | srna, |
| PyMethodDef * | method, | ||
| PyGetSetDef * | getset ) |
Definition at line 10511 of file bpy_rna.cc.
References BLI_assert, Py_DECREF(), pyrna_srna_Subtype(), and UNUSED_VARS_NDEBUG.
Referenced by BPY_rna_types_extend_capi().
|
nodiscard |
Definition at line 157 of file bpy_rna.cc.
References BPy_StructRNA::ptr, and pyrna_struct_validity_exception_only().
Referenced by pyrna_py_to_prop().
|
nodiscard |
Definition at line 143 of file bpy_rna.cc.
References BPy_StructRNA::ptr.
| void pyrna_struct_validity_exception_only | ( | const BPy_StructRNA * | pysrna | ) |
Definition at line 151 of file bpy_rna.cc.
Referenced by pyrna_struct_validity_check().
|
nodiscard |
Definition at line 457 of file bpy_rna.cc.
References BLI_assert, 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(), and pyrna_unregister_class().
| void pyrna_write_set | ( | bool | val | ) |
Definition at line 464 of file bpy_rna.cc.
References BLI_assert, and rna_disallow_writes.
Referenced by bpy_msgbus_notify(), bpy_prop_gil_rna_writable_end(), and bpy_prop_update_fn().
|
nodiscard |
Definition at line 9058 of file bpy_rna.cc.
References pyrna_struct_as_srna(), and self.
Referenced by bpy_prop_deferred_data_or_srna(), BPy_RemoveProperty(), deferred_register_prop(), pointer_type_from_py(), and pyrna_struct_meta_idprop_setattro().
|
extern |
Definition at line 96 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().
|
extern |
Definition at line 10598 of file bpy_rna.cc.
Referenced by BPy_init_modules().
|
extern |
Definition at line 10604 of file bpy_rna.cc.
Referenced by BPy_init_modules().
|
extern |
Definition at line 10147 of file bpy_rna.cc.
Referenced by BPy_init_modules().
|
extern |
Definition at line 10378 of file bpy_rna.cc.
Referenced by BPy_init_modules().
|
extern |
Definition at line 8048 of file bpy_rna.cc.
Referenced by BPY_rna_init(), BPY_rna_types(), and pyrna_func_CreatePyObject().
|
extern |
Definition at line 7467 of file bpy_rna.cc.
Referenced by BPY_rna_init(), BPY_rna_types(), pyrna_prop_CreatePyObject(), and pyrna_property_array_init().
|
extern |
Definition at line 7523 of file bpy_rna.cc.
Referenced by BPY_rna_init(), BPY_rna_types(), pyrna_prop_CreatePyObject(), and pyrna_py_to_prop().
|
extern |
Definition at line 7411 of file bpy_rna.cc.
Referenced by BPY_rna_init(), BPY_rna_types(), pyrna_prop_CreatePyObject(), pyrna_property_init(), and pyrna_property_new().
|
extern |
Sub-classes of pyrna_struct_Type which support idprop definitions use this as a meta-class.
Definition at line 7080 of file bpy_rna.cc.
Referenced by BPY_rna_init(), BPY_rna_types(), and pyrna_srna_Subtype().
|
extern |
Definition at line 7172 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().