Map Range Clamped

(Live as of April 22nd, 2015)
Dear Community,
This new node of mine, fixes an issue with Map Range where the output value is not clamped to the output range.
So if you use the current node, Map Range like so:
Then Map Range will give you 2
My node, Map Range Clamped, will give you the maximum of the output range if the value is in excess, and will still correctly return 1, the maximum output value that you supplied.
So basically if you say "I want to get back a value between 0 and 1" then my node guarantees that is exactly what will happen!
~~~
UMG Sliders
A very important use of this node is with UMG Sliders!
If you supply > 1, a UMG slider thumb will simply disappear!
My Map Range Clamped node will enable you to more easily and intuitively work with UMG sliders and do range mappings.
~~~
Range Mapping?
Every UMG slider goes from a value of 0 to 1, however the value you want to get from the slider might be -50 to 50, or 0 to 100, or -1 to 12.5.
Using my Map Range Clamped node you can easily map to/from the UMG slider range of 0 to 1 (normalized range).
~~~
Download and plug in!
Latest plugin download is here:
https://wiki.unrealengine.com/File:VictoryPlugin.zip
Enjoy!
Rama
(Live as of April 22nd, 2015)
Dear Community,
This new node of mine, fixes an issue with Map Range where the output value is not clamped to the output range.
So if you use the current node, Map Range like so:
Code:
Input: 0 to 100 Output: 0 to 1 Value: 200
My node, Map Range Clamped, will give you the maximum of the output range if the value is in excess, and will still correctly return 1, the maximum output value that you supplied.
So basically if you say "I want to get back a value between 0 and 1" then my node guarantees that is exactly what will happen!
~~~
UMG Sliders
A very important use of this node is with UMG Sliders!
If you supply > 1, a UMG slider thumb will simply disappear!
My Map Range Clamped node will enable you to more easily and intuitively work with UMG sliders and do range mappings.
~~~
Range Mapping?
Every UMG slider goes from a value of 0 to 1, however the value you want to get from the slider might be -50 to 50, or 0 to 100, or -1 to 12.5.
Using my Map Range Clamped node you can easily map to/from the UMG slider range of 0 to 1 (normalized range).
~~~
Download and plug in!
Latest plugin download is here:
https://wiki.unrealengine.com/File:VictoryPlugin.zip
Enjoy!
Rama
Comment