x.__init__(...) initializes x; see help(type(x)) for signature
OpenMaya.MRampAttribute.__init__
(
)
x.__init__(...) initializes x; see help(type(x)) for signature
Member Function Documentation
OpenMaya.MRampAttribute.addEntries
(
)
Adds entries to the ramp.
Signature:
addEntries(positions, values, interps)
Parameters:
positions - sequence of floats
values - sequence of floats or MColors
interps - sequence of Interpolation Type constants
Returns:
Reference to self.
Description:
Adds entries to the ramp. For a curve ramp values must be a sequence of floats, for color ramps it must be a sequence of MColors. A TypeError will be raised if the wrong type of values are supplied.
Creates and returns a new color or curve ramp attribute initialized with values.
OpenMaya.MRampAttribute.createRamp
(
)
static
Creates and returns a new color or curve ramp attribute initialized with values.
OpenMaya.MRampAttribute.deleteEntries
(
)
Removes from the ramp those entries with the specified indices.
Signature:
deleteEntries(indices)
Parameters:
indices - sequence of ints
Returns:
Reference to self.
Description:
Removes from the ramp those entries with the specified indices. Raises a ValueError if an attempt is made to remove the last remaining entry from the ramp.
OpenMaya.MRampAttribute.deleteEntries
(
)
Removes from the ramp those entries with the specified indices.
OpenMaya.MRampAttribute.getEntries
(
)
Returns a tuple containing all of the entries in the ramp.
Returns a tuple containing all of the entries in the ramp. The first element of the tuple is an MIntArray containing the indices. The second element is an MFloatArray containing the positions. The third element is the values, which is an MFloatArray for a curve ramp or an MColorArray for a color ramp. The fourth and final element of the tuple is an MIntArray containing the interps, which are Interpolation Type constants.
OpenMaya.MRampAttribute.getEntries
(
)
Returns a tuple containing all of the entries in the ramp.
OpenMaya.MRampAttribute.getValueAtPosition
(
)
Returns the value of the entry at the given position.
Sets the value of the entry at the given index. The value must be a float for a curve ramp or an MColor for a color ramp. A TypeError will be raised if the wrong type of value is supplied.
OpenMaya.MRampAttribute.setValueAtIndex
(
)
Sets the value of the entry at the given index.
OpenMaya.MRampAttribute.sort
(
)
Sort the ramp by position. Indices are also re-ordered during sort.
OpenMaya.MRampAttribute.sort
(
)
Sort the ramp by position. Indices are also re-ordered during sort.