Polygon Origin at Point
Pivot a panel around any x,y point you type in
- POLY_3O
Polygon Origin at Point is the one origin node that gives you full control: instead of a preset like "center" or "centroid," it lets you type an explicit x,y coordinate and use that as the pivot for Rotate Polygon, Scale Polygon, or Skew Polygon. If the other origin nodes are the convenience options, this is the one you reach for when the pivot you want isn't a clever default - it's just a spot.
Two inputs, both FLOAT, both default 0:
- x - the x coordinate of the pivot point.
- y - the y coordinate.
One POLY_3O output, which you wire into the optional origin input on the transform nodes.
The one mental model to hold onto: the coordinates are in the polygon's own coordinate space - the same space your canvas polygon was built in. So a point at (0, 0) is meaningful only relative to where your page's origin sits; if you're building a canvas from Canvas Panel at width×height, then (0,0) is typically the top-left corner of the page. Pivot around that corner and a panel will swing like a door hinged on the page's edge.
The classic use is compositional anchoring. Rotate a panel around the page corner it lives in and it flares outward into the margin - a nice full-bleed trick. Scale a panel around a point that's outside the panel entirely and you get growth that pushes the panel in one direction, not out from its middle. It's also the escape hatch when neither Center nor Centroid is what you want: type the number, done.
Two practical cautions. First, a pivot point that's far from the panel (or typed in the wrong coordinate space) will launch the panel far across the page on even a small transform - if a rotation suddenly yeets a panel off-canvas, check that your x/y are in canvas coordinates, not image coordinates (same space here, but easy to mix up mid-graph). Second, because the value is static, it doesn't follow the panel if you move the panel later; for pivots that should track a panel corner, Polygon Origin at Vertex is the smarter pick.
Installing
Part of comfyui-panels by bmad4ever. Via ComfyUI Manager (search "comfyui-panels") and restart, or:
cd ComfyUI/custom_nodes
git clone https://github.com/bmad4ever/comfyui_panels
Deps: shapely, matplotlib, opencv-python - no models, no GPU. Shapely is pinned exactly; version clashes with other packs are the realistic import failure.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| x | FLOAT | 0.00 | — |
| y | FLOAT | 0.00 | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| POLY_3O | POLY_3O | — |