light_diff#

part.light_diff(p0: float) int#

Specifies the lighting diffusion value used in shading the surfaces of the currently selected part(s).

Args:
p0:

‘diffuse’ diffuse light value, must be within the range of 0.0 to 1.0

Examples:
ensight.part.select_begin(1)
ensight.part.modify_begin()
# WARNING: following line includes OBSOLETE call (ensight.part.light_diff).
ensight.part.light_diff(0.9)
ensight.part.modify_end()
Returns:

zero on success, non-zero on error