Studio Yotsuba
Back to Node List

Ase Layer Select

ase_layer_select

Keeps one selected layer, the ancestors required to preserve its hierarchy, and optionally its descendants from an Aseprite document.

Reviewed
Guide available

Input Ports

NameTypeDescription
Aseprite
ase
AsepriteFile
Required
Source Aseprite document.

Output Ports

NameTypeDescription
Aseprite
ase
AsepriteFile
Filtered Aseprite document.
Layer Count
layer_count
Int
Layer count after filtering, including retained ancestor layers.
Summary
summary
Text
Short summary of the filtered document.

Parameters

NameTypeDefaultRangeDescription / Options
Selection Mode
selection_mode
Enum
Index—

How to choose the target layer.

  • IndexIndex
    Select a layer by its index.
  • NameName
    Select the first layer whose name matches.
Layer Index
layer_index
Int
00–1024

0-based layer index used in Index mode.

Layer Name
layer_name
Text
——

Layer name used in Name mode.

Include Children
include_children
Bool
true—

Keep descendants of the selected layer too. Required ancestors are always retained to preserve the hierarchy.

Overview

Narrows an Aseprite document to one layer, optionally including its children. The output remains an AsepriteFile; ase_frame_select converts it to an image downstream. Use this to extract parts such as "body only" or "everything except guides."

Usage tips

  • The standard order is aseprite_load → ase_layer_select → ase_frame_select. "Narrow the layers, then convert to an image" makes the intent clear.
  • Selection by name (Name) is more resilient to layer-structure changes. Index selection can shift when layers are reordered.
  • Enable include_children to select an entire folder.

Related nodes

  • ase_frame_select — converts the narrowed document to an image; usually used together
  • aseprite_load — supplies the document
  • aseprite_export — saves the narrowed document

Read this first

  • This node does not return an image.
  • Its output remains an AsepriteFile.
  • Its role is to narrow an Aseprite document; the following AseFrameSelect performs the image conversion.

Most natural wiring

AsepriteLoad
  -> AseLayerSelect
  -> AseFrameSelect
  -> Preview

Selecting the layers before extracting a frame makes the intent easier to follow.

When to use it

  • To extract only the body of a character
  • To remove UI or guide layers
  • To keep all layers grouped under a folder

Example 1: Select by index

  • selection_mode = Index
  • layer_index = 2
  • include_children = true

This returns an AsepriteFile that:

  • selects the third layer, and
  • retains its child layers.

Example 2: Select by name

  • selection_mode = Name
  • layer_name = body
  • include_children = false

This keeps:

  • the first layer whose name matches body, and
  • any ancestors required to preserve its hierarchy.

Notes

  • Name selection uses the first match.
  • include_children controls descendants only. Ancestors required to preserve the hierarchy are always retained, even when it is false, and are included in layer_count.
  • A missing Index or Name returns a zero-layer document and shows a layer_not_found warning in the Inspector.
  • If you need a single image, connect AseFrameSelect after this node.
Back to Node List