Set Active Document
set_active_documentSwitch active focus to an open Cinema 4D document by its index or name. Use when multiple documents are open to select the target for further operations.
Instructions
Switch focus to an already-open document, identified by its list index (from list_documents) or name. Pass exactly one of the two. name errors if it matches zero or several open documents — use index to disambiguate. This only switches between documents already open; use open_document to load a file from disk.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Document name; errors if it matches zero or several open documents. | |
| index | No | 0-based position in the document list (see `list_documents`). |