9.5.2

Table Of Contents
1120 CHAPTER 22
XPRESSO EDITOR 1121
Mix
This node mixes two input values to produce a single output value. Mixing Factor denes the proportion
in which the two values are mixed. Values range from 0% (output = input 1) to 1 (output = input 2).
For example, if you set Mix Factor to 50% and the inputs are 1 and 3, the node will output 2. If you
then change the Mix Factor to 33% and leave the inputs at 1 and 3, the node will output 1.666.
Negate
You can use this node to invert numbers or matrices. For example, you can
combine this node with a MatrixMulVector node to convert a position from
world coordinates to local coordinates. In the Attribute manager, choose
whether a real number or a matrix should be inverted.
Negates the input and outputs the result. For example, an input of 2 results in an output of -2. Choose
the node’s data type in the Attribute manager.
Range Mapper
This node remaps a value from one range to another. For example, suppose the height of an object
should control a light’s brightness using a set driven key. When the object is at 0 m, the light’s
brightness should be 0%. When the object is at 2 m, the brightness should be 100%. Using the Range
Mapper node, the object’s height can be remapped from the range 0 to 2 m to the range 0 to 100%.
In this case, a height of, say, 1.5 m would be remapped to 75%.
The node has four inputs that dene the input range and the output range: Input Lower and Input
Upper dene the input range; Output Lower and Output Upper dene the output range. The Input
port denes the value that should be remapped. In addition, several options control input values that
are out of range.