on

property Light.on

Return whether the light is on.

This corresponds to the Switch state of the vtk.vtkLight class.

Examples

Create a light, check if it’s on by default, and turn it off.

>>> import pyvista as pv
>>> light = pv.Light()
>>> light.on
True
>>> light.on = False