user: Explain Bpy.Types.Blenddata in complete detail according to the official Blender documentation.

assistant: donly) window_managers ¶ Window manager data-blocks Type : BlendDataWindowManagers bpy_prop_collection of WindowManager , (readonly) workspaces ¶ Workspace data-blocks Type : BlendDataWorkSpaces bpy_prop_collection of WorkSpace , (readonly) worlds ¶ World data-blocks Type : BlendDataWorlds bpy_prop_collection of World , (readonly) pack_linked_ids_hierarchy ( root_id ) ¶ Pack the given linked ID and its dependencies into current blendfile Parameters : root_id ( ID ) – Root linked ID to pack Returns : The packed ID matching the given root ID Return type : ID batch_remove ( ids ) ¶ Remove (delete) several IDs at once. Note that this function is quicker than individual calls to remove() (from bpy.types.BlendData ID collections), but less safe/versatile (it can break Blender, e.g. by removing all scenes…). Parameters : ids (Sequence[ bpy.types.ID ]) – Sequence of IDs (types can be mixed). classmethod bl_rna_get_subclass ( id , default = None , / ) ¶ Parameters : id ( str ) – The RNA type identifier. Returns : The RNA type or default when not found. Return type : bpy.types.Struct subclass classmethod bl_rna_get_subclass_py ( id , default = None , / ) ¶ Parameters : id ( str ) – The RNA type identifier. Returns : The class or default when not found. Return type : type file_path_foreach ( visit_path_fn , * , subset = None , visit_types = None , flags = {'SKIP_PACKED', 'SKIP_WEAK_REFERENCES'} ) ¶ Call visit_path_fn for the file paths used by all ID data-blocks in current bpy.data . For list of valid set members for visit_types, see: bpy.types.KeyingSetPath.id_type . Parameters : visit_path_fn (Callable[[ bpy.types.ID , str, Any], str|None]) – function that takes three parameters: the data-block, a file path, and a placeholder for future use. The function should return either None or a str . In the latter case, the visited file path will be replaced with the returned string. subset ( set [ str ] ) – When given, only these data-blocks and their used file paths will be visited. visit_types ( set [ str ] ) – When given, only visit data-blocks of these types. Ignored if subset is also given. flags ( set [ str ] ) – Set of flags that influence which data-blocks are visited. See File Path Foreach Flag Items . file_path_map ( * , subset = None , key_types = None , include_libraries = False ) ¶ Returns a mapping of all ID data-blocks in current bpy.data to a set of all file paths used by them. For list of valid set members for key_types, see: bpy.types.KeyingSetPath.id_type . Parameters : subset ( sequence ) – When given, only these data-blocks and their used file paths will be included as keys/values in the map. key_types ( set [ str ] ) – When given, filter the keys mapped by ID types. Ignored if subset is also given. include_libraries ( bool ) – Include library file paths of linked data. False by default. Returns : dictionary of bpy.types.ID instances, with sets of file path strings as their values. Return type : dict orphans_purge ( ) ¶ Remove (delete) all IDs with no user. Parameters : do_local_ids ( bool , optional ) – Include unused local IDs in the deletion, defaults to True do_linked_ids ( bool , optional ) – Include unused linked IDs in the deletion, defaults to True do_recursive ( bool , optional ) – Recursively check for unused IDs, ensuring no orphaned one remain after a single run of that function, defaults to False Returns : The number of deleted IDs. temp_data ( * , filepath = None ) ¶ A context manager that temporarily creates blender file data. Parameters : filepath ( str | bytes | None ) – The file path for the newly temporary data. When None, the path of the currently open file is used. Returns : Blend file data which is freed once the context exists. Return type : bpy.types.BlendData user_map ( * , subset = None , key_types = None , value_types = None ) ¶ Returns a mapping of all ID data-blocks in current bpy.data to a set of all data-blocks using them. For list of valid set members for key_types & value_types, see: bpy.types.KeyingSetPath.id_type . Parameters : subset (Sequence[ bpy.types.ID ]) – When passed, only these data-blocks and their users will be included as keys/values in the map. key_types ( set [ str ] ) – Filter the keys mapped by ID types. value_types ( set [ str ] ) – Filter the values in the set by ID types. Returns : dictionary that maps data-blocks ID’s to their users. Return type : dict[ bpy.types.ID , set[ bpy.types.ID ]] Inherited Properties ¶ bpy_struct.id_data Inherited Functions ¶ bpy_struct.as_pointer bpy_struct.driver_add bpy_struct.driver_remove bpy_struct.get bpy_struct.id_properties_clear bpy_struct.id_properties_ensure bpy_struct.id_properties_ui bpy_struct.is_property_hidden bpy_struct.is_property_overridable_library bpy_struct.is_property_readonly bpy_struct.is_property_set bpy_struct.items bpy_struct.keyframe_delete bpy_struct.keyframe_insert bpy_struct.keys bpy_struct.path_from_id bpy_struct.path_from_module bpy_struct.path_resolve bpy_struct.pop bpy_struct.property_overridable_library_set bpy_struct.property_unset bpy_struct.rna_ancestors bpy_struct.type_recast bpy_struct.values References ¶ Context.blend_data RenderEngine.update Next BlendDataActions(bpy_struct) Previous BezierSplinePoint(bpy_struct) Copyright &#169; Blender Authors Made with Furo Report issue on this page On this page BlendData(bpy_struct) BlendData BlendData.actions BlendData.annotations BlendData.armatures BlendData.brushes BlendData.cache_files BlendData.cameras BlendData.collections BlendData.colorspace BlendData.curves BlendData.filepath BlendData.fonts BlendData.grease_pencils BlendData.hair_curves BlendData.images BlendData.is_dirty BlendData.is_saved BlendData.lattices BlendData.libraries BlendData.lightprobes BlendData.lights BlendData.linestyles BlendData.masks BlendData.materials BlendData.meshes BlendData.metaballs BlendData.movieclips BlendData.node_groups BlendData.objects BlendData.paint_curves BlendData.palettes BlendData.particles BlendData.pointclouds BlendData.scenes BlendData.screens BlendData.shape_keys BlendData.sounds BlendData.speakers BlendData.texts BlendData.textures BlendData.use_autopack BlendData.version BlendData.volumes BlendData.window_managers BlendData.workspaces BlendData.worlds BlendData.pack_linked_ids_hierarchy() BlendData.batch_remove() BlendData.bl_rna_get_subclass() BlendData.bl_rna_get_subclass_py() BlendData.file_path_foreach() BlendData.file_path_map() BlendData.orphans_purge() BlendData.temp_data() BlendData.user_map() Inherited Properties Inherited Functions References