Context Access (bpy.context)
The context members available depend on the area of blender which is currently being accessed.
Note that all context values are readonly, but may be modified through the data api or by running operators
Global Context
These properties are avilable in any contexts.
-
bpy.context.area
-
-
bpy.context.blend_data
-
-
bpy.context.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’], default ‘EDIT_MESH’, (readonly) |
-
bpy.context.region
-
-
bpy.context.region_data
-
-
bpy.context.scene
-
-
bpy.context.screen
-
-
bpy.context.space_data
-
-
bpy.context.tool_settings
-
-
bpy.context.user_preferences
-
-
bpy.context.window
-
-
bpy.context.window_manager
-
Screen Context
-
bpy.context.scene
-
-
bpy.context.visible_objects
-
-
bpy.context.visible_bases
-
-
bpy.context.selectable_objects
-
-
bpy.context.selectable_bases
-
-
bpy.context.selected_objects
-
-
bpy.context.selected_bases
-
-
bpy.context.selected_editable_objects
-
-
bpy.context.selected_editable_bases
-
-
bpy.context.visible_bones
-
-
bpy.context.editable_bones
-
-
bpy.context.selected_bones
-
-
bpy.context.selected_editable_bones
-
-
bpy.context.visible_pose_bones
-
-
bpy.context.selected_pose_bones
-
-
bpy.context.active_bone
-
-
bpy.context.active_pose_bone
-
-
bpy.context.active_base
-
-
bpy.context.active_object
-
-
bpy.context.object
-
-
bpy.context.edit_object
-
-
bpy.context.sculpt_object
-
-
bpy.context.vertex_paint_object
-
-
bpy.context.weight_paint_object
-
-
bpy.context.image_paint_object
-
-
bpy.context.particle_edit_object
-
-
bpy.context.sequences
-
-
bpy.context.selected_sequences
-
-
bpy.context.selected_editable_sequences
-
-
bpy.context.active_operator
-
View3D Context
-
bpy.context.selected_objects
-
-
bpy.context.selected_bases
-
-
bpy.context.selected_editable_objects
-
-
bpy.context.selected_editable_bases
-
-
bpy.context.visible_objects
-
-
bpy.context.visible_bases
-
-
bpy.context.selectable_objects
-
-
bpy.context.selectable_bases
-
-
bpy.context.active_base
-
-
bpy.context.active_object
-
Buttons Context
-
bpy.context.texture_slot
-
-
bpy.context.scene
-
-
bpy.context.world
-
-
bpy.context.object
-
-
bpy.context.mesh
-
-
bpy.context.armature
-
-
bpy.context.lattice
-
-
bpy.context.curve
-
-
bpy.context.meta_ball
-
-
bpy.context.lamp
-
-
bpy.context.speaker
-
-
bpy.context.camera
-
-
bpy.context.material
-
-
bpy.context.material_slot
-
-
bpy.context.texture
-
-
bpy.context.texture_user
-
-
bpy.context.texture_user_property
-
-
bpy.context.bone
-
-
bpy.context.edit_bone
-
-
bpy.context.pose_bone
-
-
bpy.context.particle_system
-
-
bpy.context.particle_system_editable
-
-
bpy.context.particle_settings
-
-
bpy.context.cloth
-
-
bpy.context.soft_body
-
-
bpy.context.fluid
-
-
bpy.context.smoke
-
-
bpy.context.collision
-
-
bpy.context.brush
-
-
bpy.context.dynamic_paint
-
-
bpy.context.line_style
-
Image Context
-
bpy.context.edit_image
-
-
bpy.context.edit_mask
-
Node Context
-
bpy.context.selected_nodes
-
-
bpy.context.active_node
-
Text Context
-
bpy.context.edit_text
-
Clip Context
-
bpy.context.edit_movieclip
-
-
bpy.context.edit_mask
-
Sequencer Context
-
bpy.context.edit_mask
-