Create Layer
create_layerCreate or update a Cinema 4D layer by name, with optional color and flags for view, render, lock, and more.
Instructions
Create a LayerObject at the document's layer root. With update_if_exists:true the existing layer with the same name is updated in place (idempotent). Pass color:[r,g,b] (0..1) and/or flags:{solo,view,render,manager,locked,...} to configure it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Layer display name (also used for lookup). | |
| color | No | [r,g,b] in 0..1. | |
| flags | No | Initial flag values. | |
| update_if_exists | No | Idempotent update. Default false. |