connect_substrate_slab_to_material
Connect a Slab BSDF node to a material's Front Material input. Requires Substrate enabled; returns an error if disabled and recompiles the material on success.
Instructions
Connect the Slab BSDF output to the material's Front Material input. GATED by Substrate: when Substrate is disabled this returns a clear error ("Substrate disabled: cannot connect slab to Front Material...") because the Front Material input is only meaningful with Substrate enabled. When enabled, connects via ConnectMaterialProperty(MP_FrontMaterial) and recompiles.
Returns: { material_path: string, slab_node_id: string, connected_to: string, connected: bool, substrate_enabled: bool, r_substrate_cvar: int, note?: string } | (error: "Substrate disabled: ...")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| material_path | Yes | Content path to the UMaterial holding the slab node |