manage_view_layer
List, add, remove, rename, or configure Blender view layers to separate render passes, set the active layer, and apply material or world overrides for compositing.
Instructions
List, add, remove, rename or configure view layers (separate render layers).
Each view layer renders the scene with its own collection settings (see set_layer_collection) and passes, e.g. a foreground layer and a background layer composited together, or a clay layer. Pass, light group and AOV tools act on the active view layer: SET_ACTIVE first.
Args: action: LIST; ADD (view_layer is the new name); REMOVE; RENAME (to new_name); SET_ACTIVE (the layer other tools change); SET (the overrides and use_for_render below). view_layer: The layer to act on. new_name: RENAME only. material_override: SET only: render every object with this material (a clay render); "" clears it. world_override: SET only: world used for this layer; "" clears it. use_for_render: SET only: whether this layer renders at all.
Returns: Dict with every view layer (name, active, use_for_render, overrides).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | ||
| new_name | No | ||
| view_layer | No | ||
| use_for_render | No | ||
| world_override | No | ||
| material_override | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||