simple.light Module¶
- paraview.simple.light.AddLight(view=None)[source]¶
Makes a new light and adds it to the designated or active view.
- Parameters:
view – The view to add the light to. Optional, defaults to the active view.
- Returns:
The new light
- Return type:
paraview.servermanager.Light
- paraview.simple.light.CreateLight()[source]¶
Makes a new light and returns it, unattached to a view.
- Returns:
The new light
- Return type:
paraview.servermanager.Light
- paraview.simple.light.GetLight(number, view=None)[source]¶
Get a previously added light.
- Parameters:
number (int) – The index of the light to obtain.
view (View proxy. Option, if not provided the active view is used.) – The view holding the light.
- Returns:
The requested light.
- Return type:
paraview.servermanager.Light
or None