BlendData(bpy_struct)¶
base class — bpy_struct
-
class
bpy.types.BlendData(bpy_struct)¶ Main data structure representing a .blend file and all its data-blocks
-
actions¶ Action data-blocks
Type: BlendDataActionsbpy_prop_collectionofAction, (readonly)
-
armatures¶ Armature data-blocks
Type: BlendDataArmaturesbpy_prop_collectionofArmature, (readonly)
-
brushes¶ Brush data-blocks
Type: BlendDataBrushesbpy_prop_collectionofBrush, (readonly)
-
cache_files¶ Cache Files data-blocks
Type: BlendDataCacheFilesbpy_prop_collectionofCacheFile, (readonly)
-
cameras¶ Camera data-blocks
Type: BlendDataCamerasbpy_prop_collectionofCamera, (readonly)
-
curves¶ Curve data-blocks
Type: BlendDataCurvesbpy_prop_collectionofCurve, (readonly)
-
filepath¶ Path to the .blend file
Type: string, default “”, (readonly, never None)
-
fonts¶ Vector font data-blocks
Type: BlendDataFontsbpy_prop_collectionofVectorFont, (readonly)
-
grease_pencil¶ Grease Pencil data-blocks
Type: BlendDataGreasePencilsbpy_prop_collectionofGreasePencil, (readonly)
-
groups¶ Group data-blocks
Type: BlendDataGroupsbpy_prop_collectionofGroup, (readonly)
-
images¶ Image data-blocks
Type: BlendDataImagesbpy_prop_collectionofImage, (readonly)
-
is_dirty¶ Have recent edits been saved to disk
Type: boolean, default False, (readonly)
-
is_saved¶ Has the current session been saved to disk as a .blend file
Type: boolean, default False, (readonly)
-
lamps¶ Lamp data-blocks
Type: BlendDataLampsbpy_prop_collectionofLamp, (readonly)
-
lattices¶ Lattice data-blocks
Type: BlendDataLatticesbpy_prop_collectionofLattice, (readonly)
-
libraries¶ Library data-blocks
Type: BlendDataLibrariesbpy_prop_collectionofLibrary, (readonly)
-
linestyles¶ Line Style data-blocks
Type: BlendDataLineStylesbpy_prop_collectionofFreestyleLineStyle, (readonly)
-
masks¶ Masks data-blocks
Type: BlendDataMasksbpy_prop_collectionofMask, (readonly)
-
materials¶ Material data-blocks
Type: BlendDataMaterialsbpy_prop_collectionofMaterial, (readonly)
-
meshes¶ Mesh data-blocks
Type: BlendDataMeshesbpy_prop_collectionofMesh, (readonly)
-
metaballs¶ Metaball data-blocks
Type: BlendDataMetaBallsbpy_prop_collectionofMetaBall, (readonly)
-
movieclips¶ Movie Clip data-blocks
Type: BlendDataMovieClipsbpy_prop_collectionofMovieClip, (readonly)
-
node_groups¶ Node group data-blocks
Type: BlendDataNodeTreesbpy_prop_collectionofNodeTree, (readonly)
-
objects¶ Object data-blocks
Type: BlendDataObjectsbpy_prop_collectionofObject, (readonly)
-
paint_curves¶ Paint Curves data-blocks
Type: BlendDataPaintCurvesbpy_prop_collectionofPaintCurve, (readonly)
-
palettes¶ Palette data-blocks
Type: BlendDataPalettesbpy_prop_collectionofPalette, (readonly)
-
particles¶ Particle data-blocks
Type: BlendDataParticlesbpy_prop_collectionofParticleSettings, (readonly)
-
scenes¶ Scene data-blocks
Type: BlendDataScenesbpy_prop_collectionofScene, (readonly)
-
screens¶ Screen data-blocks
Type: BlendDataScreensbpy_prop_collectionofScreen, (readonly)
-
shape_keys¶ Shape Key data-blocks
Type: bpy_prop_collectionofKey, (readonly)
-
sounds¶ Sound data-blocks
Type: BlendDataSoundsbpy_prop_collectionofSound, (readonly)
-
speakers¶ Speaker data-blocks
Type: BlendDataSpeakersbpy_prop_collectionofSpeaker, (readonly)
-
texts¶ Text data-blocks
Type: BlendDataTextsbpy_prop_collectionofText, (readonly)
-
textures¶ Texture data-blocks
Type: BlendDataTexturesbpy_prop_collectionofTexture, (readonly)
-
use_autopack¶ Automatically pack all external data into .blend file
Type: boolean, default False
-
version¶ Version of Blender the .blend was saved with
Type: int array of 3 items in [0, inf], default (0, 0, 0), (readonly)
-
window_managers¶ Window manager data-blocks
Type: BlendDataWindowManagersbpy_prop_collectionofWindowManager, (readonly)
-
worlds¶ World data-blocks
Type: BlendDataWorldsbpy_prop_collectionofWorld, (readonly)
-
classmethod
bl_rna_get_subclass(id, default=None)¶ Parameters: id (string) – The RNA type identifier. Returns: The RNA type or default when not found. Return type: bpy.types.Structsubclass
-
classmethod
bl_rna_get_subclass_py(id, default=None)¶ Parameters: id (string) – The RNA type identifier. Returns: The class or default when not found. Return type: type
-
user_map([subset=(id1, id2, ...), ]key_types={..}, value_types={..})¶ Returns a mapping of all ID datablocks in current
bpy.datato a set of all datablocks using them.For list of valid set members for key_types & value_types, see:
bpy.types.KeyingSetPath.id_type.Parameters: - subset (sequence) – When passed, only these data-blocks and their users will be included as keys/values in the map.
- key_types (set of strings) – Filter the keys mapped by ID types.
- value_types (set of strings) – Filter the values in the set by ID types.
Returns: dictionary of
bpy.types.IDinstances, with sets of ID’s as their values.Return type: dict
-
Inherited Properties
Inherited Functions
References