bpy_extras submodule (bpy_extras.id_map_utils)#
- bpy_extras.id_map_utils.get_id_reference_map()#
- Returns:
Return a dictionary of direct data-block references for every data-block in the blend file.
- Return type:
dict[
bpy.types.ID
, set[bpy.types.ID
]]
- bpy_extras.id_map_utils.get_all_referenced_ids(id, ref_map)#
- Parameters:
id (
bpy.types.ID
) – The ID to lookup.ref_map (dict[
bpy.types.ID
, set[bpy.types.ID
]]) – The ID to lookup.
- Returns:
A set of IDs directly or indirectly referenced by
id
.- Return type:
set[
bpy.types.ID
]