Skip to content
07-848 2005

KeyShot Studio, materials

Color To Number

The Color To Number node converts colour values to numbers. Black usually maps to zero and white to 1. Use the node to control the output range for a greyscale roughness map.

Color to number node

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 panel

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.

ColorToNumber Metal Polished
ColorToNumber Flat Texture
ColorToNumber Metal TextureToRoughness

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.

ColorToNumber Metal ColorToNumberToRoughness
ColorToNumber Metal ColorToNumberToRoughness2

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

Color To Number with Output From = 0.25
and Output To = 0.02

ColorToNumber MaterialGraph

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

Adapted from KeyShot Studio documentation: Color To Number. © 2026 KeyShot

Procadsys customer support

Still need help?

Licences, renewals and billing

Our New Zealand team looks after your KeyShot licences, renewals and invoices.

Monday to Friday, 9:00 am to 4:30 pm NZ time, excluding New Zealand public holidays.

Technical problems

Installation errors, crashes and other technical problems with KeyShot are handled by KeyShot support.