Operators |
set_scene_3d_light_param — Set parameters of a light in a 3D scene.
set_scene_3d_light_param( : : Scene3D, LightIndex, GenParamName, GenParamValue : )
set_scene_3d_light_param sets parameters of a light source in the 3D scene Scene3D. The name and value of a parameter must be given in GenParamName and GenParamValue. The following parameters can be set:
Ambient part of the light source. Must be given as a tuple of three numbers.
Default value: [0.2, 0.2, 0.2]
Diffuse part of the light source. Must be given as a tuple of three numbers.
Default value: [0.8, 0.8, 0.8]
Handle of the 3D scene.
Index of the light source.
Names of the generic parameters.
Default value: 'ambient'
List of values: 'ambient' , 'diffuse'
Values of the generic parameters.
Default value: [0.2,0.2,0.2]
Suggested values: [0.2,0.2,0.2]
set_scene_3d_light_param returns 2 (H_MSG_TRUE) if all parameters are correct. If necessary, an exception is raised.
3D Metrology
Operators |