Blender V5.3
blender::BPyPropStore::[struct].py_data Struct Reference

Classes

union  [union].py_data.__unnamed0__

Public Attributes

PyObject * get_fn
PyObject * set_fn
PyObject * get_transform_fn
PyObject * set_transform_fn
PyObject * update_fn
union  

Detailed Description

Only store #PyObject types, so this member can be cast to an array and iterated over. nullptr members are skipped.

Definition at line 131 of file bpy_props.cc.

Member Data Documentation

◆ @006201072110217121134043344132143137231167047110

◆ get_fn

Wrap: RNA_def_property_*_funcs (depending on type).

  • get/set are used to provide access to a non-standard storage for the value (i.e. not in the default 'system-defined' IDProperties storage).
    • Their fallback implementation uses the system IDProperties storage system.
    • If get is specified, but not set, the property is considered read-only.
    • If set is specified, but not get, this is an error.
  • get_transform/set_transform are used to perform some additional transformation of the data, after get is called / before set is called (or their matching default get/set implementations).
    • Their fallback implementation is 'pass-through'.

Conceptually, the flow of callings is:

  • getter: return get_transform(self, get(self), is_property_set(self, "prop"))
  • setter: set(self, set_transform(self, new_value, get(self), is_property_set(self, "prop")))

◆ get_transform_fn

PyObject* blender::BPyPropStore::[struct].py_data get_transform_fn

◆ set_fn

◆ set_transform_fn

PyObject* blender::BPyPropStore::[struct].py_data set_transform_fn

◆ update_fn


The documentation for this struct was generated from the following files: