unreal.CurveLinearColor

class unreal.CurveLinearColor(outer: Object | None = None, name: Name | str = 'None')

Bases: CurveBase

Curve Linear Color

C++ Source:

  • Module: Engine

  • File: CurveLinearColor.h

Editor Properties: (see get_editor_property/set_editor_property)

  • adjust_brightness (float): [Read-Write]

  • adjust_brightness_curve (float): [Read-Write]

  • adjust_hue (float): [Read-Write] Properties for adjusting the color of the gradient

  • adjust_max_alpha (float): [Read-Write]

  • adjust_min_alpha (float): [Read-Write]

  • adjust_saturation (float): [Read-Write]

  • adjust_vibrance (float): [Read-Write]

  • asset_import_data (AssetImportData): [Read-Only]

get_clamped_linear_color_value(time) LinearColor

GetClampedLinearColorValue always clamps RGB in [0,1] , eg. returns LDR colors

Parameters:

time (float)

Return type:

LinearColor

get_linear_color_value(time) LinearColor
GetLinearColorValue allows RGB > 1 for HDR

if the input curves are LDR (<= 1) then the output is clamped to stay LDR, even if Adjustments would have changed it

Parameters:

time (float)

Return type:

LinearColor

get_unadjusted_linear_color_value(time) LinearColor
GetUnadjustedLinearColorValue returns the raw curve values without color adjustments

also does NOT clamp in [0,1] , beware how the RGBA is used, you may want clamping, at least >= 0

Parameters:

time (float)

Return type:

LinearColor