model_transform_matrix#
- property Camera.model_transform_matrix#
Return or set the camera’s model transformation matrix.
Examples
>>> import pyvista >>> import numpy as np >>> pl = pyvista.Plotter() >>> pl.camera.model_transform_matrix array([[1., 0., 0., 0.], [0., 1., 0., 0.], [0., 0., 1., 0.], [0., 0., 0., 1.]]) >>> pl.camera.model_transform_matrix = np.array([[1., 0., 0., 0.], ... [0., 1., 0., 0.], ... [0., 0., 1., 0.], ... [0., 0., 0., 0.5]]) >>> array([[1., 0., 0., 0.], [0., 1., 0., 0.], [0., 0., 1., 0.], [0., 0., 0., 0.5]])