pyvista.Light.is_headlight#

property Light.is_headlight[source]#

Return whether the light is a headlight.

Examples

Verify that the first light of the default light kit is a headlight.

>>> import pyvista as pv
>>> plotter = pv.Plotter()
>>> lights = plotter.renderer.lights
>>> [light.is_headlight for light in lights]
[True, False, False, False, False]
https://d33wubrfki0l68.cloudfront.net/8d857d80b4aa52de3ad5db22f6e1210632178bb4/28e2a/_images/pyvista-light-is_headlight-1_00_00.png