Light.on#
- property Light.on[source]#
Return or set whether the light is on.
This corresponds to the Switch state of the vtkLight class.
Examples#
Download Python source code | Download Jupyter notebook
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