Range Mapper
Overview
![](https://docs.incari.com/~gitbook/image?url=https%3A%2F%2F926825830-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FKQhJdUBr7YQzfIwmpAZ9%252Fuploads%252Fgit-blob-706c50cdd13e46f9a48d2e33798841dafc834cba%252Fnode-range-mapper2.png%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=593075c2&sv=1)
Range Mapper transforms a single numerical value, from its relative position in a given reference range, to a new value within a second target range.
In the event that Input
is outside of the reference (input) range, Clamp
determines whether the Output
should be clamped within the target range or transformed to its relative value outside of the range.
| Input Range | Output Range |
|
|
0.5 | 0-1 | 0-100 | ✔ or ✖ | 50 |
20 | 0-100 | 100-0 | ✔ or ✖ | 80 |
1.5 | 0-1 | 0-360 | ✔ | 360 |
1.5 | 0-1 | 0-360 | ✖ | 540 |
Scope: Project, Scene, Function, Prefab.
Attributes
![](https://docs.incari.com/~gitbook/image?url=https%3A%2F%2F926825830-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FKQhJdUBr7YQzfIwmpAZ9%252Fuploads%252Fgit-blob-9659dffda7f10a95a0437cdfda2b43a117d3b4ce%252Fnode-range-mapper2-attr.png%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=d197f412&sv=1)
Inputs
Attribute | Type | Description |
---|---|---|
| Drop-down | The type of data that will be plugged into the |
| Defined in the | The default beginning of the reference range, if there is nothing attached to the |
| Defined in the | The default end of the reference range, if there is nothing attached to the |
Outputs
Attribute | Type | Description |
---|---|---|
| Drop-down | The type of data that will be plugged into the |
| Defined in the | The default beginning of the target range, if there is nothing attached to the |
| Defined in the | The default end of the target range, if there is nothing attached to the |
| Bool | Whether the |
Inputs
Input | Type | Description |
---|---|---|
Pulse Input (►) | Pulse | A standard input Pulse, to trigger the execution of the Node. |
| Defined in the | The value to be transformed/mapped. |
| Defined in the | The beginning of the reference range. |
| Defined in the | The end of the reference range. |
| Defined in the | The beginning of the target range. |
| Defined in the | The end of the target range. |
Outputs
Output | Type | Description |
---|---|---|
Pulse Output (►) | Pulse | A standard output Pulse, to move onto the next Node along the Logic Branch, once this Node has finished its execution. |
| Defined in the | The transformed value. |
See Also
Last updated