Set Active Selection
set_selectionSets the active selection in Cinema 4D by specifying objects, tags, or materials. Supports replacing or adding to the current selection, or clearing all selection.
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. |