blender/doc/python_api/examples/bpy.msgbus.2.py
Campbell Barton 084333edb0 PyDoc: make examples self contained, resolve type warnings
Some examples were missing missing imports,
resolve some mypy warnings.
2026-02-12 00:25:15 +00:00

8 lines
277 B
Python

"""
Some properties are converted to Python objects when you retrieve them. This
needs to be avoided in order to create the subscription, by using
``datablock.path_resolve("property_name", False)``:
"""
import bpy
subscribe_to = bpy.context.object.path_resolve("name", False)