Create Layer
create_layerCreate or update a named layer in Cinema 4D, setting color and flags like solo, view, and locked for scene management.
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>"
},
"name": "create_layer"
}
}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. |