Back to Node List

Ase Layer Select

ase_layer_select

Keeps one layer and optionally its children from an Aseprite document.

Draft
Guide available
The node name and summary are available in English. Port, parameter, and article details are currently shown in Japanese.

Input Ports

NameTypeDescription
Aseprite
ase
AsepriteFile
Required
元の Aseprite document です。

Output Ports

NameTypeDescription
Aseprite
ase
AsepriteFile
選択後の Aseprite document です。
レイヤー数
layer_count
Int
選択後に残ったレイヤー数です。
概要
summary
Text
選択後 document の短い概要です。

Parameters

NameTypeDefaultRangeDescription / Options
選択方法
selection_mode
Enum
Index

対象レイヤーの選び方です。

  • 番号Index
    レイヤー番号で選択します。
  • 名前Name
    名前が一致する最初のレイヤーを選択します。
レイヤー番号
layer_index
Int
00–1024

Index モードで使う 0 始まりのレイヤー番号です。

レイヤー名
layer_name
Text

Name モードで使うレイヤー名です。

子レイヤーも含める
include_children
Bool
true

選択したレイヤーの子孫レイヤーも残します。

まず大事なこと

  • このノードは 画像を返しません
  • 出力も AsepriteFile のままです
  • つまり役割は「Aseprite document を細くすること」で、画像化は次の AseFrameSelect の担当です

一番自然なつなぎ方

AsepriteLoad
  -> AseLayerSelect
  -> AseFrameSelect
  -> Preview

先にレイヤーを絞ってからフレームを抜く方が、意図が分かりやすくなります。

どういう時に使うか

  • キャラの body だけ取り出したい時
  • UI 用レイヤーや guide レイヤーを外したい時
  • folder ごとにまとまっているレイヤーを一括で残したい時

例1: 番号で選ぶ

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

この時、

  • 3 番目のレイヤーを選び
  • その子レイヤーも残した AsepriteFile

が返ります。

例2: 名前で選ぶ

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

この時、

  • body という名前に一致する最初のレイヤーだけ

が残ります。

注意

  • 名前一致は最初の 1 件です
  • include_children = true の時は、親子関係を保つために必要な ancestor も残ります
  • 画像 1 枚が欲しい時は、このノードの後に AseFrameSelect をつないでください
Back to Node List
Ase Layer Select — PixPipeline Node Reference