Copy a body
duplicate_body
Copies a body to another place.
EditorTools tabAgentMCP
- Needs
- One body picked in 3D, or the one in Edit mode.
- In the editor
- 3D, Object mode: Shift+D, or Copy on the toolbar, copies every body picked, then moves the copies as Move does.
- Tools tab
- A form of its inputs, filled from what is picked; Run makes the change, one step to undo.
- Agent and MCP
- The chat's agent and MCP clients call
duplicate_body, each call one step to undo. Over MCP it also takesproject,editorandrequest_id.
What it does
A copy of the body with its steps and colours, named after it with the next number, at the position given and, if given, a rotation of its own.
Inputs
As the agent and MCP clients send them. One left out takes the default its description gives.
| Input | Type | What it is |
|---|---|---|
| bodyneeded | string | The body's id or its name. |
| positionneeded | [x, y, z] | [x, y, z] in mm: where the middle of the body's underside goes, so z 0 stands it on the ground. |
| rotation | [x, y, z] | [x, y, z] in degrees, applied in that order about the body's origin. |
Limits
- One body a call, to a position it is given; the editor's Shift+D copies every body picked and moves the copies by hand.
Examples
Given: Box 1, a 20 mm box standing on the ground at the origin.
duplicate_body { "body": "Box 1", "position": [30, 0, 0] }Then: Box 2, the same 20 mm box, its underside centred at (30, 0, 0).