.clamp(low,high)
Description
Clamp returns the input value clamped between a high and a low value
Parameters
The input parameters for clamp are the highest value the input can be and the lowest value the input can be
Usage On Numbers
num = 16
log num.clamp(1,10)
// 10
// clamp will make the number get between the two input values
log max(low,min(high,input))
// this is the equivalent but as min() max() osl functionsLast updated
Was this helpful?