Set Active Selection
set_selectionReplace or extend the active document selection in Cinema 4D by passing objects, tags, or materials. Supports add/replace modes and a clear option to deselect everything.
Instructions
Replace or extend the active document's selection. Pass objects (first becomes the active object), tag, or material. With mode:'add' the listed objects are added to the existing selection; with mode:'replace' (default) the prior selection is cleared first. clear:true deselects everything and ignores other fields.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | No | Tag handle to set as active. | |
| mode | No | Applies to `objects`. Default 'replace'. | |
| clear | No | If true, deselect everything and ignore other fields. | |
| objects | No | Object handles to select. The first becomes the active object. | |
| material | No | Material handle to set as active. |