Set Active Document
set_active_documentSwitch the active Cinema 4D document by name or list index to direct subsequent actions at the intended open scene. Use the index when multiple documents share the same name.
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`). |