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:
- xdir
float x component of the view direction.
- ydir
float y component of the view direction.
- zdir
float z component of the view direction.
- name
str,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_axis
tuple[float,float,float],optional Up direction for the view direction. The default is
(0.0, 1.0, 0.0).- vportindex
int,optional Viewport to set the view direction for. The default is
0.
- xdir