user: Give a detailed overview of Bpy.Context: syntax, arguments, return values, common patterns.

assistant: t. selected_ids ¶ Type : sequence of bpy.types.ID Image Context ¶ bpy.context. edit_image ¶ Type : bpy.types.Image bpy.context. edit_mask Type : bpy.types.Mask Node Context ¶ bpy.context. selected_nodes ¶ Type : sequence of bpy.types.Node bpy.context. active_node ¶ Type : bpy.types.Node bpy.context. light Type : bpy.types.Light bpy.context. material Type : bpy.types.Material bpy.context. world Type : bpy.types.World Screen Context ¶ bpy.context. scene Type : bpy.types.Scene bpy.context. view_layer Type : bpy.types.ViewLayer bpy.context. visible_objects ¶ Type : sequence of bpy.types.Object bpy.context. selectable_objects ¶ Type : sequence of bpy.types.Object bpy.context. selected_objects ¶ Type : sequence of bpy.types.Object bpy.context. editable_objects ¶ Type : sequence of bpy.types.Object bpy.context. selected_editable_objects ¶ Type : sequence of bpy.types.Object bpy.context. objects_in_mode ¶ Type : sequence of bpy.types.Object bpy.context. objects_in_mode_unique_data ¶ Type : sequence of bpy.types.Object bpy.context. visible_bones ¶ Type : sequence of bpy.types.EditBone bpy.context. editable_bones ¶ Type : sequence of bpy.types.EditBone bpy.context. selected_bones ¶ Type : sequence of bpy.types.EditBone bpy.context. selected_editable_bones ¶ Type : sequence of bpy.types.EditBone bpy.context. visible_pose_bones ¶ Type : sequence of bpy.types.PoseBone bpy.context. selected_pose_bones ¶ Type : sequence of bpy.types.PoseBone bpy.context. selected_pose_bones_from_active_object ¶ Type : sequence of bpy.types.PoseBone bpy.context. active_bone ¶ Type : bpy.types.EditBone or bpy.types.Bone bpy.context. active_pose_bone ¶ Type : bpy.types.PoseBone bpy.context. active_object ¶ Type : bpy.types.Object bpy.context. object Type : bpy.types.Object bpy.context. edit_object ¶ Type : bpy.types.Object bpy.context. sculpt_object ¶ Type : bpy.types.Object bpy.context. vertex_paint_object ¶ Type : bpy.types.Object bpy.context. weight_paint_object ¶ Type : bpy.types.Object bpy.context. image_paint_object ¶ Type : bpy.types.Object bpy.context. particle_edit_object ¶ Type : bpy.types.Object bpy.context. pose_object ¶ Type : bpy.types.Object bpy.context. active_nla_track ¶ Type : bpy.types.NlaTrack bpy.context. active_nla_strip ¶ Type : bpy.types.NlaStrip bpy.context. selected_nla_strips ¶ Type : sequence of bpy.types.NlaStrip bpy.context. selected_movieclip_tracks ¶ Type : sequence of bpy.types.MovieTrackingTrack bpy.context. annotation_data ¶ Type : bpy.types.GreasePencil bpy.context. annotation_data_owner ¶ Type : bpy.types.ID bpy.context. active_annotation_layer ¶ Type : bpy.types.GPencilLayer bpy.context. grease_pencil Type : bpy.types.GreasePencil bpy.context. active_operator ¶ Type : bpy.types.Operator bpy.context. active_action ¶ Type : bpy.types.Action bpy.context. selected_visible_actions ¶ Type : sequence of bpy.types.Action bpy.context. selected_editable_actions ¶ Type : sequence of bpy.types.Action bpy.context. visible_fcurves ¶ Type : sequence of bpy.types.FCurve bpy.context. editable_fcurves ¶ Type : sequence of bpy.types.FCurve bpy.context. selected_visible_fcurves ¶ Type : sequence of bpy.types.FCurve bpy.context. selected_editable_fcurves ¶ Type : sequence of bpy.types.FCurve bpy.context. active_editable_fcurve ¶ Type : bpy.types.FCurve bpy.context. selected_editable_keyframes ¶ Type : sequence of bpy.types.Keyframe bpy.context. ui_list ¶ Type : bpy.types.UIList bpy.context. property ¶ Type : bpy.types.AnyType or str or int Get the property associated with a hovered button. Returns a tuple of the data-block, data path to the property, and array index. Note When the property doesn’t have an associated bpy.types.ID non-ID data may be returned. This may occur when accessing windowing data, for example, operator properties. # Example inserting keyframe for the hovered property. active_property = bpy . context . property if active_property : datablock , data_path , index = active_property datablock . keyframe_insert ( data_path = data_path , index = index , frame = 1 ) bpy.context. asset_library_reference Type : bpy.types.AssetLibraryReference bpy.context. active_strip ¶ Type : bpy.types.Strip bpy.context. strips ¶ Type : sequence of bpy.types.Strip bpy.context. selected_strips ¶ Type : sequence of bpy.types.Strip bpy.context. selected_editable_strips ¶ Type : sequence of bpy.types.Strip bpy.context. sequencer_scene ¶ Type : bpy.types.Scene Sequencer Context ¶ bpy.context. edit_mask Type : bpy.types.Mask bpy.context. tool_settings Type : bpy.types.ToolSettings Text Context ¶ bpy.context. edit_text ¶ Type : bpy.types.Text View3D Context ¶ bpy.context. active_object Type : bpy.types.Object bpy.context. selected_ids Type : sequence of bpy.types.ID Next Data Access (bpy.data) Previous Change Log Copyright &#169; Blender Authors Made with Furo Report issue on this page On this page Context Access (bpy.context) Global Context area asset blend_data collection engine gizmo_group layer_collection mode preferences region region_data region_popup scene screen space_data tool_settings view_layer window window_manager workspace Buttons Context texture_slot world object mesh armature lattice curve meta_ball light speaker lightprobe camera material material_slot texture texture_user texture_user_property texture_node bone edit_bone pose_bone particle_system particle_system_editable particle_settings cloth soft_body fluid collision brush dynamic_paint line_style gpencil grease_pencil curves pointcloud volume strip strip_modifier Clip Context edit_movieclip edit_mask File Context active_file selected_files asset_library_reference selected_assets id selected_ids Image Context edit_image Node Context selected_nodes active_node Screen Context visible_objects selectable_objects selected_objects editable_objects selected_editable_objects objects_in_mode objects_in_mode_unique_data visible_bones editable_bones selected_bones selected_editable_bones visible_pose_bones selected_pose_bones selected_pose_bones_from_active_object active_bone active_pose_bone active_object edit_object sculpt_object vertex_paint_object weight_paint_object image_paint_object particle_edit_object pose_object active_nla_track active_nla_strip selected_nla_strips selected_movieclip_tracks annotation_data annotation_data_owner active_annotation_layer active_operator active_action selected_visible_actions selected_editable_actions visible_fcurves editable_fcurves selected_visible_fcurves selected_editable_fcurves active_editable_fcurve selected_editable_keyframes ui_list property active_strip strips selected_strips selected_editable_strips sequencer_scene Sequencer Context Text Context edit_text View3D Context