
In KeyShot, the Color To Number node converts colour values to numbers. Black usually maps to zero and white to 1 automatically. Use the node to control the output range, such as mapping a greyscale roughness image to values from 0.05 to 0.10.

Color To Number example with Roughness
This example uses a polished metal material. You apply a roughness texture to add micro-imperfections to its surface. The third image shows the result of applying the texture directly to the Roughness parameter of the metal material.



Polished metal material | Flat material showing the Roughness texture | Texture controlling the Roughness of the metal material |
These examples show how a Color To Number utility node affects the material when placed between the texture and the Roughness parameter.
Color To Number limits the range of the parameter it controls. The values stay within the range set by Output From and Output To.


Color To Number with Output From = 0.01 | Color To Number with Output From = 0.25 |

Basic Material Graph structure for using Color To Number to control Roughness:
Texture > Color To Number > Material