pyvista.Light.set_scene_light

pyvista.Light.set_scene_light#

Light.set_scene_light()[source]#

Set the light to be a scene light.

Scene lights are stationary with respect to the scene. Calling this method will reset the light’s transformation matrix.

Examples

>>> import pyvista as pv
>>> light = pv.Light()
>>> light.set_scene_light()
>>> light.light_type
<LightType.SCENE_LIGHT: 3>