Triple (hwx.inspire.Attributes)#
- class Triple(default=(0, 0, 0), **kwds)#
Bases:
Attribute
Store 3 float values.
Base class for Color, Direction, Location.
Method Table# Name
Description
castForSet
(self, obj, value)create
(self, obj)getGuiValue
(self, obj, format=’modeling’)getValue
(self, obj)setValue
(self, obj, value)- create(obj)#
bool(x) -> bool
Returns True when the argument x is true, False otherwise. The builtins True and False are the only two instances of the class bool. The class bool is a subclass of the class int, and cannot be subclassed.
- castForSet(obj, value)#
Converts and validates the value of the attribute before setting.
Converts the value it to its internal type (and base units if applicable).
- Parameters:
obj (GeneralObject) – Object this attribute belongs to.
value (Any) – Value of the attribute to set.
- Returns:
Validated and converted value.
- Return type:
value (Any)
- getGuiValue(obj, format='modeling')#
Returns the formatted value, as shown in the Property Editor.