Skip to main content
This node converts an image batch and its bounding boxes into a layer stack, creating one layer per frame and placing each layer according to its matching box. Use it when a node outputs layers as a batch, because a batch carries only a single placement for every frame and the individual positions would otherwise be lost.

Inputs

Notes:
  • bboxes and mask must be index-aligned with image: the nth box and the nth mask frame correspond to the nth image frame. Frames without a matching box are placed at the origin.
  • When bboxes contains normalized elements (with a “bbox”), canvas_width and canvas_height must be provided so those normalized positions can be resolved to pixels.
  • canvas_width and canvas_height must both be greater than 0 to set the document canvas explicitly. If either is 0, the canvas is derived from the placed layers or inherited from the connected layers stack.
  • When layers is connected, new layers are appended to it and receive z-index values above the highest z-index already present in the stack.
  • When crop_to_content is enabled and a frame has a metadata.content_rect, the frame is cropped to that rect and the box’s width/height scaling is not applied; instead, the rect’s offset is added to the box position.

Outputs

This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! Edit on GitHub

Source fingerprint (SHA-256): a70956bf0d7ea8bdbd16767ed8b19600b274a6eeb745728f95219578adc73712