Batch Execute
batchRun multiple Cinema 4D operations in a single request, applying them sequentially, continuing on per-op errors, and wrapping them in one undo group.
Instructions
Run many generic ops in one main-thread RPC. Each op is applied in order; by default failures are recorded per op and the batch continues. The whole batch is wrapped in a single undo group unless undo_group=false. Pass document_name to bind every allowed active-document operation to one uniquely named open document and restore the prior active document afterward; document lifecycle, arbitrary Python, and command operations are rejected in this scoped mode.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ops | Yes | Operations to execute in order. | |
| undo_group | No | Wrap the batch in one outer undo group (default true). Set false when ops include undo or mix reads/renders/saves with independently undo-wrapped mutations. | |
| document_name | No | Optional unique open-document name. The bridge activates it atomically for allowed operations, rejects document-switching/bypass operations, verifies the target around every handler, and restores the prior active document in finally. | |
| stop_on_error | No | Abort on first error (default false — errors are collected per op). |