light_converttoabs#

viewport.light_converttoabs() int#

Converts light coordinates which are relative to the viewport to be absolute (relative to the model coordinate system) and thus have a static lighting effect.

none
Examples:
ensight.viewport.select_begin(3)
ensight.viewport.light1_position("Relative")
ensight.viewport.light1_azimuth(-9.702e+01)
ensight.viewport.light1_elevation(3.750e+01)
ensight.viewport.light_converttoabs()
Returns:

zero on success, non-zero on error