set_anchors
Define persistent named anchors on objects to mark positions and directions. Anchors follow placement moves and support global coordinate conversion.
Instructions
Define explicit named anchors on an object.
Stored on the object (persists with the document) and follows Placement
moves. coord_frame="global" converts document coords to local via the
inverse Placement — use it whenever your source coordinates are global.
Args:
anchors: {name: {"pos": [x, y, z], "dir": [x, y, z] | null}}.
replace: Replace all existing anchors instead of merging.
coord_frame: "local" (stored as-is) or "global".
with_screenshot: Attach a screenshot of the result (default: no screenshot).
Returns:
JSON with anchor_count; records a modeling-session step.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| anchors | Yes | ||
| replace | No | ||
| doc_name | Yes | ||
| obj_name | Yes | ||
| coord_frame | No | local | |
| with_screenshot | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |