swap_material_layer_parameters
Exchange two layer slots on a layered material instance to reorder surface stacking without rebuilding the full stack; all per-layer parameters move with the slot.
Instructions
Exchange two layer slots on a layered material instance -- reorder which surface sits above which without rebuilding the whole stack with set_material_layer_stack. Every per-layer parameter moves with the slot, so any index you recorded earlier now points at the other layer; re-read get_material_layer_stack afterwards.
Returns: { material_instance_path: string, original_index: int, new_index: int, success: bool }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| new_index | Yes | The new layer parameter index to swap with | |
| original_index | Yes | The original layer parameter index | |
| material_instance_path | Yes | Content path to the MIC |