Color (hwx.inspire.core)

Stores a color value as 3 RGB float values between 0 to 1

The color can also be set by name like: obj.color = “blue”

Public Methods

castForSet (self, obj, value)
getGuiValue (self, obj, component=None, format=None)

Method Details

castForSet(self, obj, value)

Converts and validates the color value before setting.

param obj:Object this attribute belongs to.
type obj:GeneralObject
param value:Value of the attribute to set.
type value:str
returns:Validated and converted value.
getGuiValue(self, obj, component=None, format=None)

Returns color value as shown in the Property Editor.