place_object
Snap an object to another in Blender using exact world bounding boxes. Set on_top, under, left_of, or other relations to prevent floating cups and sunken legs.
Instructions
Snap an object against another using exact world bounding boxes - no floating cups or sunken legs. e.g. place_object('Lamp', 'on_top', 'Desk', align='keep') keeps its XY and sets its base on the desk.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gap | No | Distance between the touching faces (negative = sink in). | |
| align | No | Alignment on the other two axes: centre on target, align min/max edges, or keep current position. | center |
| object | Yes | ||
| offset | No | Extra world offset after snapping. | |
| target | No | Object name or list of names. | |
| relation | No | Where to put it relative to target's bounding box. | on_top |