Blender V5.3
blender::IDFilePathForeachData Struct Reference

Public Attributes

PyObject * visit_path_fn
bool seen_error

Detailed Description

Definition at line 517 of file bpy_rna_id_collection.cc.

Member Data Documentation

◆ seen_error

bool blender::IDFilePathForeachData::seen_error

Set to true when there was an exception in the callback function. Once this is set, no Python API function should be called any more (apart from reference counting), so that the error state is maintained correctly.

Definition at line 533 of file bpy_rna_id_collection.cc.

Referenced by blender::bpy_file_path_foreach().

◆ visit_path_fn

PyObject* blender::IDFilePathForeachData::visit_path_fn

Python callback function for visiting each path.

def visit_path_fn(owner_id: bpy.types.ID, path: str, meta: BlendDataPathMeta) -> str | None

If the function returns a string, the path is replaced with the return value.

Definition at line 526 of file bpy_rna_id_collection.cc.

Referenced by blender::bpy_file_path_foreach().


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