set_layer_collection
Control how a collection participates in a Blender view layer by setting exclude, holdout, or indirect-only flags for rendering and compositing.
Instructions
Set how a collection takes part in one view layer.
Args: collection_name: Collection, at any depth. view_layer: View layer to change; omit for the active one. exclude: Leave the collection out of this layer entirely. holdout: Render it as a transparent cut-out (the objects mask what is behind them), for compositing layers back together. indirect_only: Cycles: it shows only in reflections, shadows and bounce light, not directly to the camera.
Returns: Dict with the collection, the layer and its exclude/holdout/indirect_only.
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": {
"collection_name": "<collection_name>"
},
"name": "set_layer_collection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| exclude | No | ||
| holdout | No | ||
| view_layer | No | ||
| indirect_only | No | ||
| collection_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||