colorby_rgb#

part.colorby_rgb(p0: float, p1: float, p2: float) int#

Colors the currently selected part(s) using the specified rgb value.

Args:
p0:

‘red_val’ red, green, blue color components (must be between 0.0 and 1.0)

p1:

‘grn_val’ red, green, blue color components (must be between 0.0 and 1.0)

p2:

‘blu_val’ red, green, blue color components (must be between 0.0 and 1.0)

Examples:
ensight.part.select_begin(1)
ensight.part.modify_begin()
ensight.part.colorby_rgb(1.0,0.4,0.0)
ensight.part.modify_end()
Returns:

zero on success, non-zero on error