Houdini 21.0 Nodes APEX nodes

Fit

Takes a (clamped) value in one range and shifts it to a new range.

On this page
Since 21.0

Takes val, clamped within the range (srcmin, srcmax), and shifts it to the corresponding value in the range (destmin, destmax). Because value is clamped before fitting, result is guaranteed to be in the range (destmin, destmax).

To avoid clamping, use Efit.

Inputs

val: Float

The value to shift to the new range.

srcmin: Float

The lower end of the input range.

srcmax: Float

The upper end of the input range.

destmin: Float

The lower end of the new range.

destmax: Float

The upper end of the new range.

Outputs

result: Float

The result of shifting val to the new range.

See also

APEX nodes