Studio Yotsuba
Back to Node List

Model Set Material

model_set_material

Assigns a PBR material to every region or one named region without changing geometry.

Reviewed
Guide available

Input Ports

NameTypeDescription
Model
model
Model
Required
Generated polygon model to assemble without mesh booleans.
PBR Material
material
PbrMaterial
Required
Material to bind.

Output Ports

NameTypeDescription
Model
model
Model
Assembled game-ready polygon model.

Parameters

NameTypeDefaultRangeDescription / Options
Scope
scope
Enum
AllMatching—

Choose every matching part or one stable Part ID.

  • AllMatchingAllMatching
  • PartIdPartId
Part ID
part_id
Text
——

Stable Model Part ID to update when Scope is Part ID.

Region
region
Text
——

Named mesh region to update. Empty assigns every region.

Overview

Assigns a PBR material, including textures, to a model. It does not change the shape; it assigns a material to the entire model or to named regions such as top and body. This is the key stage in the create primitive → assign material → review → export workflow.

Usage tips

  • Scope = AllMatching targets every part; PartId targets one stable Part ID. Enter the Part ID shown by model inspection, not the human-readable Part Name.
  • In Part ID scope, a material asset replacement can still affect an untargeted part that already references the same incoming Material ID. The node warns in that case; use a separate Material ID when appearances must be independent.
  • Specify a region name to assign materials by part, such as wood grain to a cylinder's body and growth rings to its top, without editing vertices.
  • Use pixel-art images created within the graph directly as textures. A tile texture generated by nodes can flow straight through to a box model.
  • To share one material across several models, branch from a common material node.

Related nodes

  • model_render — reviews the assigned result
  • model_trim_sheet_apply — assigns UVs for a trim sheet
  • texture_layout_dilate — prevents texture bleeding
  • model_gltf_export — exports the model
Back to Node List