Reorder elements within a clip
reorder_elementsReorder the elements inside a clip. List position IS the z-index — later entries in ordered_element_ids render on top of earlier ones.
You MUST pass the full set of element IDs currently in the clip. The handler rejects partial lists so a reorder can never silently drop an element. Get the current list via get_clip.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clip_index | Yes | Zero-based clip index. | |
| project_id | Yes | Project ID. | |
| ordered_element_ids | Yes | All element IDs currently in the clip, in the new order. Position N = z-index N (later = on top). |