Camera.from_paraview_pvcc#
- classmethod Camera.from_paraview_pvcc( ) 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:
- filename
strorpathlib.Path Path to Paraview camera file (.pvcc).
- filename
- Returns:
pyvista.CameraCamera from the camera file.
Examples#
Download Python source code | Download Jupyter notebook
>>> 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)