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
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
-
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.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_slot
-
-
bpy.context.bone
-
-
bpy.context.edit_bone
-
-
bpy.context.pose_bone
-
-
bpy.context.particle_system
-
-
bpy.context.particle_system_editable
-
-
bpy.context.cloth
-
-
bpy.context.soft_body
-
-
bpy.context.fluid
-
-
bpy.context.smoke
-
-
bpy.context.collision
-
-
bpy.context.brush
-
Image Context
-
bpy.context.edit_image
-
Node Context
-
bpy.context.selected_nodes
-
Text Context
-
bpy.context.edit_text
-