Depsgraph(bpy_struct)

base class — bpy_struct

class bpy.types.Depsgraph(bpy_struct)
ids

All evaluated datablocks

Type:bpy_prop_collection of ID, (readonly)
mode

Evaluation mode

  • VIEWPORT Viewport, Viewport non-rendered mode.
  • RENDER Render, Render.
Type:enum in [‘VIEWPORT’, ‘RENDER’], default ‘VIEWPORT’, (readonly)
object_instances

All object instances to display or render (WARNING: only use this as an iterator, never as a sequence, and do not keep any references to its items)

Type:bpy_prop_collection of DepsgraphObjectInstance, (readonly)
objects

Evaluated objects in the dependency graph

Type:bpy_prop_collection of Object, (readonly)
scene

Original scene dependency graph is built for

Type:Scene, (readonly)
scene_eval

Original scene dependency graph is built for

Type:Scene, (readonly)
updates

Updates to datablocks

Type:bpy_prop_collection of DepsgraphUpdate, (readonly)
view_layer

Original view layer dependency graph is built for

Type:ViewLayer, (readonly)
view_layer_eval

Original view layer dependency graph is built for

Type:ViewLayer, (readonly)
debug_relations_graphviz(filename)

debug_relations_graphviz

Parameters:filename (string, (never None)) – File Name, File in which to store graphviz debug output
debug_stats_gnuplot(filename, output_filename)

debug_stats_gnuplot

Parameters:
  • filename (string, (never None)) – File Name, File in which to store graphviz debug output
  • output_filename (string, (never None)) – Output File Name, File name where gnuplot script will save the result
debug_tag_update()

debug_tag_update

debug_stats()

Report the number of elements in the Dependency Graph

Returns:result
Return type:string, (never None)
id_eval_get(id)

id_eval_get

Parameters:id (ID) – Original ID to get evaluated complementary part for
Returns:Evaluated ID for the given original one
Return type:ID
id_type_updated(id_type)

id_type_updated

Parameters:id_type (enum in ['ACTION', 'ARMATURE', 'BRUSH', 'CAMERA', 'CACHEFILE', 'CURVE', 'FONT', 'GREASEPENCIL', 'COLLECTION', 'IMAGE', 'KEY', 'LIGHT', 'LIBRARY', 'LINESTYLE', 'LATTICE', 'MASK', 'MATERIAL', 'META', 'MESH', 'MOVIECLIP', 'NODETREE', 'OBJECT', 'PAINTCURVE', 'PALETTE', 'PARTICLE', 'LIGHT_PROBE', 'SCENE', 'SOUND', 'SPEAKER', 'TEXT', 'TEXTURE', 'WINDOWMANAGER', 'WORLD', 'WORKSPACE']) – ID Type
Returns:Updated, True if any datablock with this type was added, updated or removed
Return type:boolean
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.Struct subclass
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

Inherited Properties

Inherited Functions

References