set_headlight

Light.set_headlight()

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
>>> light = pyvista.Light()
>>> light.set_headlight()
>>> light.light_type
<LightType.HEADLIGHT: 1>