set_view_direction#

Views.set_view_direction(xdir: float, ydir: float, zdir: float, name: str | None = None, perspective: bool | None = False, up_axis: Tuple[float, float, float] = (0.0, 1.0, 0.0), vportindex: int = 0) None#

Set the view direction of the session.

Parameters:
xdirfloat

x component of the view direction.

ydirfloat

y component of the view direction.

zdirfloat

z component of the view direction.

namestr, optional

Name for the new view settings. The default is None, in which case an incremental name is automatically assigned.

perspectivebool, optional

Whether to enable the perspective view. The default is False.

up_axistuple[float, float, float], optional

Up direction for the view direction. The default is (0.0, 1.0, 0.0).

vportindexint, optional

Viewport to set the view direction for. The default is 0.