Nodes/comfyui-panels/Build Layout Panels
ComfyUI Node

Build Layout Panels

Obtains a list of panels from the provided layout.The panels are sorted with respect to hierarchy and defined reading order.For example: A vertical cut in left-to-right reading order will place, on the list, the panels from the left side of the cut before to the panels on the right side of the cut.

By bmad4ever·Created 11 months ago·Updated 2 months ago· 38
Build Layout Panels
  • layout
  • canvas
  • POLYGON
margin32
reading_dirfalse
CategoryBmad/Panels

Inputs (4)

NameTypeDefaultDescription
layoutPANEL_LAYOUTRoot node of the 'abstract' cut's tree.
canvasPOLYGONA box shaped polygon representing the area to be cut into the panels.
marginINT320–1000The distance (in pixels) between the panels formed by the 1st cut.The distance for nested cuts decreases the higher the depth in the layout hierarchy.
reading_dirBOOLEANfalseInvert the panel layout horizontally to be read from right to left.

Outputs (1)

NameTypeDescription
POLYGONPOLYGONPanels (Shapely Polygons)