paya.runtime.nodes.RemapValue#
- class RemapValue(*args, **kwargs)#
Inheritance
RemapValueDependNodeDependNodePyNodeProxyUnicode- setValues(positionValuePairs, interpolation='Linear')#
Sets (or connects) all values on this node. The entire previous configuration of the
valuecompound multi is discarded.- Parameters
positions ([float,
Math1D]) – the positions at which to set valuesvalues ([float,
Math1D]) – the values to set; must be the same number as positionsinterpolation/i –
this can be either one enum key or index for the value interpolation, or a list of them. The enums are:
0: ‘None’
1: ‘Linear’ (the default)
2: ‘Smooth’
3: ‘Spline’
- Returns
self- Return type
- resetValues()#
Resets the value compound array.
- Returns
self- Return type
- sampleValue(position, reuse=True, plug=None)#
Samples an interpolated value at the specified position.
- Parameters
- Returns
The value sample output.
- Return type
- setColors(positionColorPairs, interpolation='Linear')#
Sets (or connects) all colors on this node. The entire previous configuration of the
colorcompound multi is discarded.- Parameters
positions ([float,
Math1D]) – the positions at which to set colorscolors ([list, tuple, str,
Vector,Vector]) – the colors to set; must be the same number as positionsinterpolation/i – this can be either one enum key or index for the color interpolation, or a list of them. The enums are: - 0: ‘None’ - 1: ‘Linear’ (the default) - 2: ‘Smooth’ - 3: ‘Spline’
- Returns
self- Return type
RemapColor
- resetColors()#
Resets the color compound array.
- Returns
self- Return type
- sampleColor(position, plug=None, reuse=True)#
Samples an interpolated color at the specified position.
- Parameters
- Returns
The color sample output.
- Return type
- resetNode(skipInputValue=False)#
Removes all inputs from this node and resets all attributes to defaults.
- Parameters
skipInputValue/siv (bool) – don’t modify the
inputValueattribute; defaults to False- Returns
self- Return type
- driveSlave(slave, skipInputValue=False)#
Drives another
remapValuenode completely.- Parameters
slave (str,
RemapValue) – the node to driveskipInputValue/siv (bool) – don’t modify the slave
inputValueattribute; defaults to False
- Returns
self- Return type
- createClone()#
- Returns
A new
remapValuenode, driven by this one.- Return type
- getClones()#
- Returns
Nodes created using
createClone().- Return type
- findCloneWithPosition(position)#
- Parameters
position (float,
Math1D) – the position value or plug- Raises
NoCloneForPositionError – No clone was found.
- Returns
An existing clone configured for the specified position.
- Return type
- updateClones()#
Reconnects current clones. This is normally necessary after adding or removing
colororvalueindices on this node.- Returns
self- Return type