Studio Yotsuba
Back to Node List

Model Trim Sheet Apply

model_trim_sheet_apply

Remaps each named mesh region into an explicit trim-sheet rectangle without editing vertices by hand.

Reviewed
Guide available

Input Ports

NameTypeDescription
Model
model
Model
Required
Generated polygon model to assemble without mesh booleans.
Texture Layout
layout
TextureLayout
Required
Layout matching one mesh in the Model.

Output Ports

NameTypeDescription
Model
model
Model
Assembled game-ready polygon model.
Texture Layout
texture_layout
TextureLayout
Automatic UV layout and named material regions for 2D authoring.

Parameters

NameTypeDefaultRangeDescription / Options
Atlas Width
atlas_width
Int
641–8192

—

Atlas Height
atlas_height
Int
641–8192

—

Padding
padding
Int
10–64

—

Region Rectangles
assignments_json
Text
{"version":1,"assignments":{"top":[1,1,14,14],"side":[17,1,30,14],"bottom":[49,1,14,14]}}—

JSON map of region name to [x,y,width,height] inner pixel rectangle.

Overview

Remaps named model regions to a trim sheet—rectangles on one shared texture. It implements the common game-3D technique of sharing one texture among several models and assigning strip-shaped rectangles to individual parts, without editing vertices.

Usage tips

  • Region Rectangles uses a table editor with suggestions from the connected Texture Layout. Edit each region's inner X/Y/W/H rectangle there. Out-of-bounds padding and overlapping padded rectangles are reported immediately; invalid JSON opens a multiline recovery field.
  • The output Texture Layout preserves the input texel_density; applying a trim sheet never silently resets the target to 16.
  • Use it when several models should share one texture. Combine the walls, roofs, and trim for a building set on one sheet, then map each model region to its matching rectangle.
  • After assignment, use model_texel_density_check to look for density inconsistencies.
  • For a self-contained single model, automatic UVs plus model_set_material are usually sufficient.

Related nodes

  • model_set_material — assigns the material itself
  • model_texel_density_check — checks the result after assignment
  • texture_layout_dilate — prevents bleeding on the sheet
  • model_gltf_export — exports the model with its shared sheet
Back to Node List