pyvista.Light.set_headlight

pyvista.Light.set_headlight#

Light.set_headlight()[source]#

Set the light to be a headlight.

Headlights are fixed to the camera and always point to the focal point of the camera. Calling this method will reset the light’s transformation matrix.

Examples

>>> import pyvista as pv
>>> light = pv.Light()
>>> light.set_headlight()
>>> light.light_type
<LightType.HEADLIGHT: 1>