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).

Inheritance diagram

Inheritance

Parent Class:

Attributes

maxon.GradientKnot.bias

(float) Bias.

maxon.GradientKnot.brightness

(float) Brightness.

maxon.GradientKnot.col

(maxon.Color) Color.

maxon.GradientKnot.index

(Int32) Knot ID in GradientInterface, knot index in GradientRenderDataInterface.

maxon.GradientKnot.interpolation

(maxon.GRADIENT_INTERPOLATION_TYPE)

maxon.GradientKnot.pos

(float) Position.

Methods Signature

__init__([otherOrColor, brightness, pos, …])

Initializes the appropriate C++ Data object and store it within the _data member.

__str__()

Returns the string representation of a data.

Methods Definition

GradientKnot.__init__(otherOrColor=maxon.Color64 object at 0x1b1d3f228e0 with the data: R:1.0, G:1.0, B: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 (Optional[maxon.Data]) – Input data from which the Data should be created.

GradientKnot.__str__()

Returns the string representation of a data.

Return type

str