mat_connect_expressions
Wire Unreal material graphs by connecting an expression node's output to another node's input or to a root material slot like BaseColor or Roughness. Set the target to empty to link to a root input.
Instructions
Connect two material expression nodes or connect an expression to a material input.
For material root input connections (BaseColor, Metallic, etc.) use '' (empty string) as to_expression_name and the slot name as to_input_name.
Common material root input names: BaseColor, Metallic, Specular, Roughness, EmissiveColor, Opacity, OpacityMask, Normal, WorldPositionOffset, SubsurfaceColor, AmbientOcclusion, Refraction, PixelDepthOffset
Common expression output names: RGB, R, G, B, A, (default) ''
Args: material_path: Full asset path to the Material from_expression_name: Object name of the source expression node (from mat_add_expression outputs.expression_name) from_output_name: Output pin name on the source node (e.g. 'RGB', 'R', '') to_expression_name: Object name of the target expression, OR '' to connect directly to a material root input slot to_input_name: Input pin/slot name on the target (e.g. 'A', 'BaseColor')
Returns: JSON StructuredResult.
KB: see knowledge_base/01_BLUEPRINT_FUNDAMENTALS.md#overview Example: mat_connect_expressions(material_path="/Game/MCP_Test/M_Example", from_expression_name="ExampleName", from_output_name="ExampleName", to_expression_name="ExampleName", to_input_name="ExampleName")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| material_path | Yes | ||
| to_input_name | Yes | ||
| from_output_name | Yes | ||
| to_expression_name | Yes | ||
| from_expression_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |