get_material_layer_stack
Reads a material's ordered layer and blend functions and reports whether it is layered, so you know valid layer indices before setting layer parameters.
Instructions
Read a material's layer stack: the layer functions and blend functions it uses, in order, with has_layers telling you whether the material is layered at all. Check this before any set_material_layer_parameter call -- on a non-layered material the layer indices mean nothing, and here is where you learn which index is which surface.
Returns: { material_instance_path: string, layers: [{name, function_path}], blends: [{name, function_path}], layer_count: int, blend_count: int, has_layers: bool }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| material_instance_path | Yes | Content path to the material |