NXOpen.UF.Disp.SetColor

Disp.SetColor()

Refer to UF_DISP_set_color for documentation.

Signature: SetColor(clrNum, clrModel, clrName, clrValues)

Parameters:
  • clrNum (int) – The number of the color whose name and value are to be returned; Range: 0 .. (# color records in CTO) - 1 Note: 0 is for the background color
  • clrModel (int) – The color model of the values in clr_values: UF_DISP_rgb_model UF_DISP_hsv_model UF_DISP_hls_model
  • clrName (str) – The name of the color; the character array must be null terminated. The length must not exceed UF_DISP_MAX_NAME_SIZE, as defined in uf_disp.h ignored if clr_num == 0
  • clrValues (list of float) – Three doubles representing the color, where the meaning and range of each value depends on the color model specified: rgb: clr_values[0]: 0.0

License requirements: None