set_substrate_slab_scalar
Set a Substrate Slab BSDF scalar pin value by creating and wiring a Constant node to inputs such as Roughness or F0. Call after creating the slab node.
Instructions
Drive a Substrate Slab BSDF scalar pin with a Constant node. Creates a Constant expression set to value and connects it to the named slab pin (e.g. Roughness, F0, DiffuseAlbedo, Anisotropy). Works regardless of whether Substrate is enabled. Requires create_substrate_slab_node first.
Returns: { material_path: string, slab_node_id: string, constant_node_id: string, pin_name: string, value: number, connected: bool, substrate_enabled: bool, r_substrate_cvar: int, note?: string }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | Scalar constant value to feed into the pin | |
| pin_name | Yes | Slab input pin to drive (e.g. "Roughness") | |
| material_path | Yes | Content path to the UMaterial holding the slab node |