maxon.GradientKnot¶
Description¶
General
maxon.Data
class.An object of this class can store every type of data as long as that type has been registered
(see
maxon.DataType
).Attributes¶
(float) Bias. |
|
(float) Brightness. |
|
( |
|
(Int32) Knot ID in GradientInterface, knot index in GradientRenderDataInterface. |
|
(float) Position. |
Methods Signature¶
|
Initializes the appropriate C++ Data object and store it within the _data member. |
|
Returns the string representation of a data. |
|
Returns the string representation of a data. |
Methods Definition¶
-
GradientKnot.
__init__
(otherOrColor=maxon.Color64(1.0, 1.0, 1.0), brightness=1.0, pos=0.0, bias=0.5, index=0, interpolation=2)¶ Initializes the appropriate C++ Data object and store it within the _data member.
If C is a Data then _data store a copy the C++ Data is done and stored.If C is a C++ Data then _data store a reference of the C++ Data.If C is not defined the C++ data is created and stored in the _data member.- Parameters
C (Union[None,
maxon.Data
]) – Input data from which the Data should be created.
-
GradientKnot.
__repr__
()¶ Returns the string representation of a data.
- Return type
str
-
GradientKnot.
__str__
()¶ Returns the string representation of a data.
- Return type
str