is_headlight

property Light.is_headlight

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]
../../../_images/pyvista-Light-is_headlight-1_00_00.png