Studio Yotsuba
Back to Node List

Surface Assign ID

surface_assign_id

Paints a material ID or face ID onto a Surface using a mask image.

Reviewed
Guide available

Input Ports

NameTypeDescription
Surface
surface
Surface
Required
Surface that receives the ID.
Mask
mask
Image
Required
White or opaque pixels receive the selected ID.

Output Ports

NameTypeDescription
Surface
surface
Surface
Surface with updated material or face IDs.
ID Mask
id_mask
Image
Grayscale preview of the updated ID map.

Parameters

NameTypeDefaultRangeDescription / Options
ID Kind
id_kind
Enum
Material—

Choose whether the mask paints material IDs or face IDs.

  • MaterialMaterial
    Paint a material ID.
  • FaceFace
    Paint a face ID.
Material ID
material_id
Text
core:metal—

Material ID written into the masked area.

Face ID
face_id
Text
surface:detail—

Face ID written into the masked area.

Mask Source
mask_source
Enum
Alpha—

Choose which value of the mask decides where to paint.

  • AlphaAlpha
    Use opacity as the mask.
  • LuminanceLuminance
    Use grayscale brightness as the mask.
  • RedRed
    Use the red channel as the mask.
  • GreenGreen
    Use the green channel as the mask.
  • BlueBlue
    Use the blue channel as the mask.
Threshold
threshold
Float
0.50–1 / step 0.01

Pixels at or above this value receive the selected ID.

What is it for?

  • Changing only metal areas to core:metal
  • Assigning different face IDs to floors, walls, and roofs after creation
  • Creating custom regions that Surface ID Mask can extract

Overview

Paints material or face IDs onto white areas of a mask. It does not change the visible appearance; it writes information such as “this is metal” or “this is the left wall” into the Surface. Downstream lighting, material-specific processing, and extraction with surface_id_mask can then use that information.

Usage tips

  • It forms a round trip with surface_id_mask: paint a region with Assign, then extract it later with Mask. This enables custom divisions where regions you paint drive your own processing.
  • Face IDs such as wall:left enable direction-specific shading and outline control. Review the divisions with the F view in the Surface preview.
  • If you need to paint only material IDs, the dedicated surface_assign_material provides the same operation.

Related nodes

  • surface_id_mask — extracts a painted ID

  • surface_assign_material — material-ID-only version

  • path_mask / mask_boolean — create the mask that defines the painted area

  • surface_light_preview — reviews the effect of IDs

  • Version: 1

Examples

[Surface] → surface → [Surface Assign ID(id_kind:Face, face_id:wall:left)] → surface
              [Mask] → mask

After painting the face ID, use the F Surface preview to see the painted face in a separate color.

Back to Node List