Converts a value from one range to another, for example a 0-1 signal into a strength from 0.3 to 2.2.
What it is for
The node to put between a signal and a setting: it decides where the setting sits at rest and how far it goes at full signal. Works the same for a hand gesture, an audio band, a particle's age or a distance.
How it works
The node locates Value between From Min and From Max, then outputs the point at the same place between To Min and To Max: Value at From Min gives To Min, Value at From Max gives To Max. With Clamp, values outside the From range are held at the ends; without it the line carries on beyond To Min and To Max. Smoothstep and Smootherstep ease the start and the end of the travel, and always hold the ends. In a chain that feeds a force, the node is computed for each particle, so a per-particle source upstream (Particle Info, Noise) gives a per-particle result. In the inputs read once for the whole system (Time Scale, Appearance, effects) it gives one number, and per-particle sources count as 0 there.
Connections
Plug the signal into Value: a Hand or Audio output, a Wave, Particle Info > Speed or Life Ratio, a distance from Vector Math. The Result output goes into any number input: a force's Strength, the Particle System's Time Scale, an effect's Strength.
Settings
| Setting | What it does | Default |
|---|---|---|
| Value | The incoming signal to convert. | 0.5 |
| From Min | Incoming value that gives To Min: the low end of what the signal really does. | 0 |
| From Max | Incoming value that gives To Max: the high end of what the signal really does. Keep it different from From Min. | 1 |
| To Min | Result when the signal is at From Min: the resting value of the setting. | 0 |
| To Max | Result when the signal is at From Max. It can be lower than To Min: the setting then goes down when the signal goes up. | 1 |
| Interpolation | How the result travels between To Min and To Max. Linear: in proportion to the signal. Smoothstep: soft start and soft arrival. Smootherstep: the same, softer still at both ends.
| |
| Clamp | On: the result never leaves the To Min - To Max range. Off: a signal beyond the From range pushes the result beyond it. Acts in Linear only; the two smooth modes always clamp. |
Outputs
Result
Tips
- Narrow the From range to what the signal really reaches (a hand rarely goes below 0.1 or above 0.9): the setting then uses its full travel.
- A narrow From range (for example 0.5 to 0.6) with Smoothstep makes a soft switch: the result flips from To Min to To Max over a small move of the signal.
- Put a Monitor before and after to see the incoming and outgoing numbers while you tune the four limits.