Blender V5.0
IDFilePathForeachData Struct Reference

Public Attributes

PyObject * visit_path_fn
bool seen_error

Detailed Description

Definition at line 509 of file bpy_rna_id_collection.cc.

Member Data Documentation

◆ seen_error

bool 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 525 of file bpy_rna_id_collection.cc.

Referenced by bpy_file_path_foreach().

◆ visit_path_fn

PyObject* IDFilePathForeachData::visit_path_fn

Python callback function for visiting each path.

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

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

Definition at line 518 of file bpy_rna_id_collection.cc.

Referenced by bpy_file_path_foreach().


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