Reset Active Scene
reset_sceneClear the Cinema 4D scene state by removing objects with a given prefix or resetting to a fresh document. Useful for fast test suite cleanup without chained removal calls.
Instructions
Clear scene state in one RPC. With prefix (e.g. 'e2e_') removes only objects / materials / non-active render data / non-main takes whose name starts with the prefix, then flushes the undo buffer — cheap cleanup for test suites. Without prefix, swaps the active document for a fresh empty BaseDocument (everything goes). Much faster than chained remove_entity calls when cleanup involves animated objects.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prefix | No | Only remove entities whose name starts with this prefix. Omit for full reset. | |
| keep_active_rd | No | Prefix-mode only: protect the currently-active RenderData from deletion. Default true. |