Go to: Synopsis. Return value. MEL examples.

Synopsis

smoothstep float float float

smoothstep is NOT undoable, NOT queryable, and NOT editable.

This command is identical to linstep except that the correlation between the third argument and the return value is not linearly interpolated when the third argument is between the first and second arguments. Instead, the interpolation is a cubic polynomial between the return value and the distance between the first and second arguments. This gives the return value a zero slope when the third argument is equal to either the first or second argument. In other words, the return value creates a smooth starting and ending transition when the third argument ranges between the first and second arguments. smoothstep uses a hermite interpolation.

Return value

floatInterpolated value

MEL examples

smoothstep 1 3 2;
// Result: 0.5 //
smoothstep 1 3 2.5;
// Result: 0.84375 //