pyvista.Camera.from_paraview_pvcc

pyvista.Camera.from_paraview_pvcc#

classmethod Camera.from_paraview_pvcc(
filename: str | Path,
) Camera[source]#

Load a Paraview camera file (.pvcc extension).

Returns a pyvista.Camera object for which attributes has been read from the filename argument.

Parameters:
filenamestr or pathlib.Path

Path to Paraview camera file (.pvcc).

Returns:
pyvista.Camera

Camera from the camera file.

Examples

>>> import pyvista as pv
>>> pl = pv.Plotter()
>>> pl.camera = pv.Camera.from_paraview_pvcc(
...     "camera.pvcc"
... )  
>>> pl.camera.position
(1.0, 1.0, 1.0)