Context(bpy_struct)¶
base class — bpy_struct
-
class
bpy.types.Context(bpy_struct)¶ Current windowmanager and data context
-
collection¶ - Type
Collection, (readonly)
-
engine¶ - Type
string, default “”, (readonly, never None)
-
gizmo_group¶ - Type
GizmoGroup, (readonly)
-
layer_collection¶ - Type
LayerCollection, (readonly)
-
mode¶ - Type
enum in [‘EDIT_MESH’, ‘EDIT_CURVE’, ‘EDIT_SURFACE’, ‘EDIT_TEXT’, ‘EDIT_ARMATURE’, ‘EDIT_METABALL’, ‘EDIT_LATTICE’, ‘POSE’, ‘SCULPT’, ‘PAINT_WEIGHT’, ‘PAINT_VERTEX’, ‘PAINT_TEXTURE’, ‘PARTICLE’, ‘OBJECT’, ‘PAINT_GPENCIL’, ‘EDIT_GPENCIL’, ‘SCULPT_GPENCIL’, ‘WEIGHT_GPENCIL’, ‘VERTEX_GPENCIL’], default ‘EDIT_MESH’, (readonly)
-
preferences¶ - Type
Preferences, (readonly)
-
region_data¶ - Type
RegionView3D, (readonly)
-
tool_settings¶ - Type
ToolSettings, (readonly)
-
window_manager¶ - Type
WindowManager, (readonly)
-
evaluated_depsgraph_get()¶ Get the dependency graph for the current scene and view layer, to access to data-blocks with animation and modifiers applied. If any data-blocks have been edited, the dependency graph will be updated. This invalidates all references to evaluated data-blocks from the dependency graph.
- Returns
Evaluated dependency graph
- Return type
-
copy()¶
-
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
-
Inherited Properties
Inherited Functions
References