wrap expression function

Wraps a value between a minimum and maximum.

Replaced by: hou.hmath

All Usage Examples

Usage

wrap(value, minimum, maximum)

Similar to the clamp expression in that the resulting value will always fall between the specified minimum and maximum value. It will, however, create a sawtooth wave for continuously increasing or decreasing values of the value.

Examples

wrap ($F, 5, 10)

Creates a sawtooth function between 5 and 10.