pyvista.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
str
orpathlib.Path
Path to Paraview camera file (.pvcc).
- filename
- 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)