Reparent object
reparent_objectRe-nest an existing object under a different parent group. Changes inherited transforms; use to reorganize object hierarchy without altering positions.
Instructions
Move an object (object_id) under a new parent (new_parent_id); both must exist.
When to use: re-nesting one existing object into another group. To wrap SEVERAL objects in a new
group use group_objects; to reposition without re-nesting use move_object.
Key params: object_id and new_parent_id both must exist; rejected if the new parent is the
object itself or one of its descendants. NOTE: re-parenting changes the inherited coordinate
space — the object's visual position can shift if old/new parents carry different transforms.
Return shape: CreateResult — object_id echoes the moved object, bbox=None, plus the
pipeline fields (operation_id, snapshot_id, changed, preview).
Example: reparent_object(doc_id, "star", "layer2")
Render and look before you trust this edit: render with render_preview (or live_render_view)
and inspect the result before relying on it; restore_snapshot reverts it if it is wrong.
Risk class: medium (reversible edit on the working copy; original untouched).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc_id | Yes | ||
| object_id | Yes | ||
| new_parent_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bbox | No | ||
| doc_id | Yes | ||
| changed | Yes | ||
| summary | No | ||
| object_id | Yes | ||
| snapshot_id | Yes | ||
| operation_id | Yes | ||
| preview_after | No | ||
| preview_before | No |