# Examples from pyvista.Light.light_type
# ======================================

# Check the type of lights for the first two lights of the default
# light kit of plotters.
import pyvista as pv
pl = pv.Plotter()
lights = pl.renderer.lights[:2]
[light.light_type for light in lights]

# Change the light type of the default light kit's headlight to a scene light.
import pyvista as pv
pl = pv.Plotter()
lights = pl.renderer.lights[:2]
lights[0].light_type = pv.Light.SCENE_LIGHT
[light.light_type for light in lights]

# ----------------------------------------------------------------------
# Generated by sphinx-examples-as-code https://github.com/pyvista/sphinx-examples-as-code
