RegionView3D(bpy_struct)

base class — bpy_struct

class bpy.types.RegionView3D(bpy_struct)

3D View region data

clip_planes

(multi-dimensional array of 6 * 4 items, in [-inf, inf], default ((0.0, 0.0, 0.0, 0.0), (0.0, 0.0, 0.0, 0.0), (0.0, 0.0, 0.0, 0.0), (0.0, 0.0, 0.0, 0.0), (0.0, 0.0, 0.0, 0.0), (0.0, 0.0, 0.0, 0.0)))

Type:

bpy_prop_array[float]

is_orthographic_side_view

Whether the current view is aligned to an axis (does not check whether the view is orthographic, use “is_perspective” for that). Setting this will rotate the view to the closest axis (default False)

Type:

bool

is_perspective

(default False)

Type:

bool

lock_rotation

Lock view rotation of side views to Top/Front/Right (default False)

Type:

bool

perspective_matrix

Current perspective matrix (window_matrix * view_matrix) (multi-dimensional array of 4 * 4 items, in [-inf, inf], default ((0.0, 0.0, 0.0, 0.0), (0.0, 0.0, 0.0, 0.0), (0.0, 0.0, 0.0, 0.0), (0.0, 0.0, 0.0, 0.0)), readonly)

Type:

mathutils.Matrix

show_sync_view

Sync view position between side views (default False)

Type:

bool

use_box_clip

Clip view contents based on what is visible in other side views (default False)

Type:

bool

use_clip_planes

(default False)

Type:

bool

view_camera_offset

View shift in camera view (array of 2 items, in [-inf, inf], default (0.0, 0.0))

Type:

bpy_prop_array[float]

view_camera_zoom

Zoom factor in camera view (in [-30, 600], default 0.0)

Type:

float

view_distance

Distance to the view location (in [0, inf], default 0.0)

Type:

float

view_location

View pivot location (array of 3 items, in [-inf, inf], default (0.0, 0.0, 0.0))

Type:

mathutils.Vector

view_matrix

Current view matrix (multi-dimensional array of 4 * 4 items, in [-inf, inf], default ((0.0, 0.0, 0.0, 0.0), (0.0, 0.0, 0.0, 0.0), (0.0, 0.0, 0.0, 0.0), (0.0, 0.0, 0.0, 0.0)))

Type:

mathutils.Matrix

view_perspective

View Perspective (default 'ORTHO')

Type:

Literal[‘PERSP’, ‘ORTHO’, ‘CAMERA’]

view_rotation

Rotation in quaternions (keep normalized) (array of 4 items, in [-inf, inf], default (0.0, 0.0, 0.0, 0.0))

Type:

mathutils.Quaternion

window_matrix

Current window matrix (multi-dimensional array of 4 * 4 items, in [-inf, inf], default ((0.0, 0.0, 0.0, 0.0), (0.0, 0.0, 0.0, 0.0), (0.0, 0.0, 0.0, 0.0), (0.0, 0.0, 0.0, 0.0)), readonly)

Type:

mathutils.Matrix

update()

Recalculate the view matrices

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:

bpy.types.Struct

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

Inherited Properties

Inherited Functions

References