SpaceView3D(Space)
base classes — bpy_struct, Space
- class bpy.types.SpaceView3D(Space)
3D View space data
- clip_end
3D View far clipping distance (in [1e-06, inf], default 1000.0)
- Type:
float
- clip_start
3D View near clipping distance (perspective view only) (in [1e-06, inf], default 0.01)
- Type:
float
- icon_from_show_object_viewport
(in [-inf, inf], default 0, readonly)
- Type:
int
- lens
Viewport lens angle (in [1, 250], default 50.0)
- Type:
float
- local_view
Display an isolated subset of objects, apart from the scene visibility (readonly)
- Type:
- lock_bone
3D View center is locked to this bone’s position (default “”, never None)
- Type:
str
- lock_camera
Enable view navigation within the camera view (default False)
- Type:
bool
- lock_cursor
3D View center is locked to the cursor’s position (default False)
- Type:
bool
- mirror_xr_session
Synchronize the viewer perspective of virtual reality sessions with this 3D viewport (default False)
- Type:
bool
- overlay
Settings for display of overlays in the 3D viewport (readonly, never None)
- Type:
- region_3d
3D region for this space. When the space is in quad view, the camera region (readonly)
- Type:
- region_quadviews
3D regions (the third one defines quad view settings, the fourth one is same as ‘region_3d’) (default None, readonly)
- Type:
- render_border_max_x
Maximum X value for the render region (in [0, 1], default 0.0)
- Type:
float
- render_border_max_y
Maximum Y value for the render region (in [0, 1], default 0.0)
- Type:
float
- render_border_min_x
Minimum X value for the render region (in [0, 1], default 0.0)
- Type:
float
- render_border_min_y
Minimum Y value for the render region (in [0, 1], default 0.0)
- Type:
float
- shading
Settings for shading in the 3D viewport (readonly, never None)
- Type:
- show_bundle_names
Show names for reconstructed tracks objects (default False)
- Type:
bool
- show_camera_path
Show reconstructed camera path (default False)
- Type:
bool
- show_gizmo
Show gizmos of all types (default True)
- Type:
bool
- show_gizmo_camera_dof_distance
Gizmo to adjust camera focus distance (depends on limits display) (default False)
- Type:
bool
- show_gizmo_camera_lens
Gizmo to adjust camera focal length or orthographic scale (default False)
- Type:
bool
- show_gizmo_context
Context sensitive gizmos for the active item (default True)
- Type:
bool
- show_gizmo_empty_force_field
Gizmo to adjust the force field (default False)
- Type:
bool
- show_gizmo_empty_image
Gizmo to adjust image size and position (default False)
- Type:
bool
- show_gizmo_light_look_at
Gizmo to adjust the direction of the light (default False)
- Type:
bool
- show_gizmo_light_size
Gizmo to adjust spot and area size (default False)
- Type:
bool
- show_gizmo_modifier
Gizmos for the active modifier (default True)
- Type:
bool
Viewport navigation gizmo (default True)
- Type:
bool
- show_gizmo_object_rotate
Gizmo to adjust rotation (default False)
- Type:
bool
- show_gizmo_object_scale
Gizmo to adjust scale (default False)
- Type:
bool
- show_gizmo_object_translate
Gizmo to adjust location (default False)
- Type:
bool
- show_gizmo_tool
Active tool gizmo (default True)
- Type:
bool
- show_object_select_armature
Allow selection of armatures (default True)
- Type:
bool
- show_object_select_camera
Allow selection of cameras (default True)
- Type:
bool
- show_object_select_curve
Allow selection of curves (default True)
- Type:
bool
- show_object_select_curves
Allow selection of hair curves (default True)
- Type:
bool
- show_object_select_empty
Allow selection of empties (default True)
- Type:
bool
- show_object_select_font
Allow selection of text objects (default True)
- Type:
bool
- show_object_select_grease_pencil
Allow selection of Grease Pencil objects (default True)
- Type:
bool
- show_object_select_lattice
Allow selection of lattices (default True)
- Type:
bool
- show_object_select_light
Allow selection of lights (default True)
- Type:
bool
- show_object_select_light_probe
Allow selection of light probes (default True)
- Type:
bool
- show_object_select_mesh
Allow selection of mesh objects (default True)
- Type:
bool
- show_object_select_meta
Allow selection of metaballs (default True)
- Type:
bool
- show_object_select_pointcloud
Allow selection of point clouds (default True)
- Type:
bool
- show_object_select_speaker
Allow selection of speakers (default True)
- Type:
bool
- show_object_select_surf
Allow selection of surfaces (default True)
- Type:
bool
- show_object_select_volume
Allow selection of volumes (default True)
- Type:
bool
- show_object_viewport_armature
Show armatures (default True)
- Type:
bool
- show_object_viewport_camera
Show cameras (default True)
- Type:
bool
- show_object_viewport_curve
Show curves (default True)
- Type:
bool
- show_object_viewport_curves
Show hair curves (default True)
- Type:
bool
- show_object_viewport_empty
Show empties (default True)
- Type:
bool
- show_object_viewport_font
Show text objects (default True)
- Type:
bool
- show_object_viewport_grease_pencil
Show Grease Pencil objects (default True)
- Type:
bool
- show_object_viewport_lattice
Show lattices (default True)
- Type:
bool
- show_object_viewport_light
Show lights (default True)
- Type:
bool
- show_object_viewport_light_probe
Show light probes (default True)
- Type:
bool
- show_object_viewport_mesh
Show mesh objects (default True)
- Type:
bool
- show_object_viewport_meta
Show metaballs (default True)
- Type:
bool
- show_object_viewport_pointcloud
Show point clouds (default True)
- Type:
bool
- show_object_viewport_speaker
Show speakers (default True)
- Type:
bool
- show_object_viewport_surf
Show surfaces (default True)
- Type:
bool
- show_object_viewport_volume
Show volumes (default True)
- Type:
bool
- show_reconstruction
Display reconstruction data from active movie clip (default True)
- Type:
bool
- show_region_asset_shelf
Display a region with assets that may currently be relevant (such as brushes in paint modes, or poses in Pose Mode) (default False)
- Type:
bool
- show_region_hud
(default False)
- Type:
bool
- show_region_tool_header
(default False)
- Type:
bool
- show_region_toolbar
(default False)
- Type:
bool
- show_region_ui
(default False)
- Type:
bool
- show_stereo_3d_cameras
Show the left and right cameras (default False)
- Type:
bool
- show_stereo_3d_convergence_plane
Show the stereo 3D convergence plane (default True)
- Type:
bool
- show_stereo_3d_volume
Show the stereo 3D frustum volume (default False)
- Type:
bool
- show_viewer
Display non-final geometry from viewer nodes (default True)
- Type:
bool
- stereo_3d_camera
(default
'S3D')- Type:
Literal[‘LEFT’, ‘RIGHT’, ‘S3D’]
- stereo_3d_convergence_plane_alpha
Opacity (alpha) of the convergence plane (in [0, 1], default 0.15)
- Type:
float
- stereo_3d_eye
Current stereo eye being displayed (default
'LEFT_EYE', readonly)- Type:
Literal[‘LEFT_EYE’, ‘RIGHT_EYE’]
- stereo_3d_volume_alpha
Opacity (alpha) of the cameras’ frustum volume (in [0, 1], default 0.05)
- Type:
float
- tracks_display_size
Display size of tracks from reconstructed data (in [0, inf], default 0.2)
- Type:
float
- tracks_display_type
Viewport display style for tracks (default
'PLAIN_AXES')- Type:
Literal[‘PLAIN_AXES’, ‘ARROWS’, ‘SINGLE_ARROW’, ‘CIRCLE’, ‘CUBE’, ‘SPHERE’, ‘CONE’]
- use_local_camera
Use a local camera in this view, rather than scene’s active camera (default False)
- Type:
bool
- use_local_collections
Display a different set of collections in this viewport (default False)
- Type:
bool
- use_render_border
Use a region within the frame size for rendered viewport (when not viewing through the camera) (default False)
- Type:
bool
- classmethod bl_rna_get_subclass(id, default=None, /)
- Parameters:
id (str) – The RNA type identifier.
default (
bpy.types.Struct| None) – The value to return when not found.
- Returns:
The RNA type or default when not found.
- Return type:
- classmethod bl_rna_get_subclass_py(id, default=None, /)
- Parameters:
id (str) – The RNA type identifier.
default (type | None) – The value to return when not found.
- Returns:
The class or default when not found.
- Return type:
type
- classmethod draw_handler_add(callback, args, region_type, draw_type)
Add a new draw handler to this space type. It will be called every time the specified region in the space type will be drawn. Note: All arguments are positional only for now.
- Parameters:
callback (Callable[..., Any]) – A function that will be called when the region is drawn. It gets the specified arguments as input, it’s return value is ignored.
args (tuple[Any, ...]) – Arguments that will be passed to the callback.
region_type (str) – The region type the callback draws in; usually
WINDOW. (bpy.types.Region.type)draw_type (str) – Usually
POST_PIXELfor 2D drawing andPOST_VIEWfor 3D drawing. In some casesPRE_VIEWcan be used.BACKDROPcan be used for backdrops in the node editor.
- Returns:
Handler that can be removed later on.
- Return type:
object
- classmethod draw_handler_remove(handler, region_type)
Remove a draw handler that was added previously.
- Parameters:
handler (object) – The draw handler that should be removed.
region_type (str) – Region type the callback was added to.