set_material_layer_stack
Define the ordered layer and blend functions for a material instance, composing surfaces from reusable layers instead of editing the base graph; re-stacking renumbers indexed per-layer values.
Instructions
Define which material-layer and blend functions a layered material instance stacks, in order -- how you compose a surface (base + dirt + snow) out of reusable layer functions instead of editing the base material graph. Order is significant and layers are addressed downstream by index (set_material_layer_parameter), so re-stacking renumbers existing per-layer values. Read the result back with get_material_layer_stack.
Returns: { material_instance_path: string, layer_count: int, blend_count: int, success: bool }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| blends | No | Optional list of {function_path} dicts naming blend material functions. | |
| layers | No | Optional list of {function_path} dicts naming layer material functions. | |
| material_instance_path | Yes | Content path to the MIC |