Go to: Synopsis. Return value. MEL examples.
linstep
float float float
linstep is NOT undoable, NOT queryable, and NOT editable.
This command returns a floating point value between zero and one representing what percentage of the distance between the first and second arguments is represented by the third argument. The first and second arguments represent minimum and maximum values respectively. If the third argument is less than the minimum, the command returns zero. If the third argument is greater than the maximimum value, the command returns one.float | Interpolated value |
linstep 1 3 2; // Result: 0.5 // linstep 1 3 5; // Result: 1 // linstep 1 3 2.5; // Result: 0.75 //