attach
Move a Blender part and its children so a selected bounding-box point lands on another object's box point, with optional offset.
Instructions
Move part (with its children) so a point of its world bounding box lands on a point of the bounding box of
to. Anchors are fractions 0..1 per axis: (0.5,0.5,0) is bottom centre, (0.5,0.5,1) is top centre.
Default puts the part on top of the target. offset is in metres. Both boxes include the children of each object;
with_children=false measures the two objects alone (the children still move with the part). The answer gives
boxes_used (objects, min, max, size of both boxes after the move) and moved_by; min and max at the top level
are of part alone. Boxes do not follow round or slanted surfaces: use move_to_contact to close the real gap,
place_on to drop onto uneven ground, transform_objects for a known offset.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | ||
| part | Yes | ||
| offset | No | ||
| to_anchor | No | ||
| part_anchor | No | ||
| with_children | No |