align_shapes
Align an object's face, edge, or vertex to a target element using touch, center, or axis modes, with optional offset along the target normal.
Instructions
Move an object so one of its elements aligns with a target element.
Modes: "touch" (face-to-face, normals opposing), "center" (centers
coincide, translation only), "axis" (cylindrical axes aligned).
offset: extra distance along target normal after alignment ("touch" only).
Args:
element / element_index: Element on the object to move.
target_element / target_element_index: Element on the target.
mode: Alignment mode: "touch", "center", or "axis".
offset: Extra distance along target normal (positive = away).
Returns:
JSON with success and the new Placement.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | touch | |
| offset | No | ||
| element | Yes | ||
| doc_name | Yes | ||
| obj_name | Yes | ||
| target_obj | Yes | ||
| element_index | Yes | ||
| target_element | Yes | ||
| target_element_index | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |