Inputs
Notes:
bboxesandmaskmust be index-aligned withimage: 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
bboxescontains normalized elements (with a “bbox”),canvas_widthandcanvas_heightmust be provided so those normalized positions can be resolved to pixels. canvas_widthandcanvas_heightmust 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 connectedlayersstack.- When
layersis 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_contentis 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