pyvista.plotting.widgets.WidgetHelper.add_camera_orientation_widget#
- WidgetHelper.add_camera_orientation_widget(animate: bool = True, n_frames=20)[source]#
 Add a camera orientation widget to the active renderer.
- Parameters:
 - Returns:
 - vtkCameraOrientationWidget
 Camera orientation widget.
See also
add_axes()Add arrow-style axes as an orientation widget.
add_box_axes()Add an axes box as an orientation widget.
- Axes Objects
 Example showing different axes objects.
Examples
Add a camera orientation widget to the scene.
>>> import pyvista as pv >>> mesh = pv.Cube() >>> plotter = pv.Plotter() >>> _ = plotter.add_mesh(mesh, scalars=range(6), show_scalar_bar=False) >>> _ = plotter.add_camera_orientation_widget() >>> plotter.show()