Light.is_headlight#
Examples#
Download Python source code | Download Jupyter notebook
Verify that the first light of the default light kit is a headlight.
>>> import pyvista as pv
>>> pl = pv.Plotter()
>>> lights = pl.renderer.lights
>>> [light.is_headlight for light in lights]
[True, False, False, False, False]