pyvista.Light.on

Contents

pyvista.Light.on#

property Light.on[source]#

Return or set 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