BlendData(bpy_struct)¶
base class — bpy_struct
-
class
bpy.types.
BlendData
(bpy_struct)¶ Main data structure representing a .blend file and all its datablocks
-
actions
¶ Action datablocks
Type: BlendDataActions
bpy_prop_collection
ofAction
, (readonly)
-
armatures
¶ Armature datablocks
Type: BlendDataArmatures
bpy_prop_collection
ofArmature
, (readonly)
-
brushes
¶ Brush datablocks
Type: BlendDataBrushes
bpy_prop_collection
ofBrush
, (readonly)
-
cache_files
¶ Cache Files datablocks
Type: BlendDataCacheFiles
bpy_prop_collection
ofCacheFile
, (readonly)
-
cameras
¶ Camera datablocks
Type: BlendDataCameras
bpy_prop_collection
ofCamera
, (readonly)
-
curves
¶ Curve datablocks
Type: BlendDataCurves
bpy_prop_collection
ofCurve
, (readonly)
-
filepath
¶ Path to the .blend file
Type: string, default “”, (readonly, never None)
-
fonts
¶ Vector font datablocks
Type: BlendDataFonts
bpy_prop_collection
ofVectorFont
, (readonly)
-
grease_pencil
¶ Grease Pencil datablocks
Type: BlendDataGreasePencils
bpy_prop_collection
ofGreasePencil
, (readonly)
-
groups
¶ Group datablocks
Type: BlendDataGroups
bpy_prop_collection
ofGroup
, (readonly)
-
images
¶ Image datablocks
Type: BlendDataImages
bpy_prop_collection
ofImage
, (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 datablocks
Type: BlendDataLamps
bpy_prop_collection
ofLamp
, (readonly)
-
lattices
¶ Lattice datablocks
Type: BlendDataLattices
bpy_prop_collection
ofLattice
, (readonly)
-
libraries
¶ Library datablocks
Type: BlendDataLibraries
bpy_prop_collection
ofLibrary
, (readonly)
-
linestyles
¶ Line Style datablocks
Type: BlendDataLineStyles
bpy_prop_collection
ofFreestyleLineStyle
, (readonly)
-
masks
¶ Masks datablocks
Type: BlendDataMasks
bpy_prop_collection
ofMask
, (readonly)
-
materials
¶ Material datablocks
Type: BlendDataMaterials
bpy_prop_collection
ofMaterial
, (readonly)
-
meshes
¶ Mesh datablocks
Type: BlendDataMeshes
bpy_prop_collection
ofMesh
, (readonly)
-
metaballs
¶ Metaball datablocks
Type: BlendDataMetaBalls
bpy_prop_collection
ofMetaBall
, (readonly)
-
movieclips
¶ Movie Clip datablocks
Type: BlendDataMovieClips
bpy_prop_collection
ofMovieClip
, (readonly)
-
node_groups
¶ Node group datablocks
Type: BlendDataNodeTrees
bpy_prop_collection
ofNodeTree
, (readonly)
-
objects
¶ Object datablocks
Type: BlendDataObjects
bpy_prop_collection
ofObject
, (readonly)
-
paint_curves
¶ Paint Curves datablocks
Type: BlendDataPaintCurves
bpy_prop_collection
ofPaintCurve
, (readonly)
-
palettes
¶ Palette datablocks
Type: BlendDataPalettes
bpy_prop_collection
ofPalette
, (readonly)
-
particles
¶ Particle datablocks
Type: BlendDataParticles
bpy_prop_collection
ofParticleSettings
, (readonly)
-
scenes
¶ Scene datablocks
Type: BlendDataScenes
bpy_prop_collection
ofScene
, (readonly)
-
screens
¶ Screen datablocks
Type: BlendDataScreens
bpy_prop_collection
ofScreen
, (readonly)
-
shape_keys
¶ Shape Key datablocks
Type: bpy_prop_collection
ofKey
, (readonly)
-
sounds
¶ Sound datablocks
Type: BlendDataSounds
bpy_prop_collection
ofSound
, (readonly)
-
speakers
¶ Speaker datablocks
Type: BlendDataSpeakers
bpy_prop_collection
ofSpeaker
, (readonly)
-
texts
¶ Text datablocks
Type: BlendDataTexts
bpy_prop_collection
ofText
, (readonly)
-
textures
¶ Texture datablocks
Type: BlendDataTextures
bpy_prop_collection
ofTexture
, (readonly)
-
use_autopack
¶ Automatically pack all external data into .blend file
Type: boolean, default False
-
version
¶ Version of the blender the .blend was saved with
Type: int array of 3 items in [0, inf], default (0, 0, 0), (readonly)
-
window_managers
¶ Window manager datablocks
Type: BlendDataWindowManagers
bpy_prop_collection
ofWindowManager
, (readonly)
-
worlds
¶ World datablocks
Type: BlendDataWorlds
bpy_prop_collection
ofWorld
, (readonly)
-
user_map
([subset=(id1, id2, ...), ]key_types={..}, value_types={..})¶ Returns a mapping of all ID datablocks in current
bpy.data
to 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.ID
instances, with sets of ID’s as their values.Return type: dict
-
Inherited Properties
Inherited Functions
References