Stack
Assemble images from a folder or from multiple inputs into one image sequence.
What it does
Stack collects several images into one RasterArray, a single ordered sequence for anything that consumes multiple frames, such as an Iterator doing per-instance texturing. Wire two or more images, or an existing RasterArray, into the multi-input and they are appended in connection order into one output.
Stack also scans a folder. Set Folder Path and every matching file in that directory is listed, filtered by extension and sorted by name, date, type or size, as a semicolon-separated list on the Paths output.
When to use it
Several images wired from different parts of the graph that need to become one array, for an Iterator, a Gradient lookup, or anything expecting a sequence.
A count of how many images are connected: read Count.
The list of file paths in a folder, filtered and sorted, driving another part of the graph.
| Parameter | Type | Default |
|---|---|---|
inputs | Any | Collection(AttributedCollection { col... |
folder_path | String | "" |
extension_filter | String | "png,jpg,jpeg" |
sort_order | String | "Name" |
frame_offset | Number | 0 |
match_resolution | Boolean | false |
fit_mode | String | "Fill" |
Gotchas
Count reflects the images wired into the multi-input only. A folder scan by itself does not add to Count.
Extension Filter is comma-separated, for example png,jpg,jpeg, and case-insensitive. Leave it blank to include every file in the folder.
Worked example
Add a Stack node.
Wire two or more images into the multi-input pin. They are appended in connection order.
Read Media out into an Iterator, or any node that takes a RasterArray, to use the stacked frames.
Optionally set Folder Path and Extension Filter to pull the matching file paths from a folder into Paths.
See also
Sort · Partition · Capture · Rasters (images)