connect_material_expressions
Wire one material node's output pin into another's input pin to turn loose expressions into a working graph; verify the pin connection, then compile.
Instructions
Wire one material node's output pin into another node's input pin -- the call that turns loose expressions into a working graph, and the only headless route to some pins. Input names go WITHOUT spaces (BaseColor and AmbientOcclusion work, "Base Color" does not), and MakeMaterialAttributes accepts named pins the graph walker reports as unnamed, including Displacement. A true return only means the pin NAME resolved: confirm the connection landed by re-reading get_material_expressions / get_material_graph_info, then compile and check get_material_stats.
Returns: { material_path: string, from_expression_name: string, from_output_name: string, to_expression_name: string, to_input_name: string, success: bool }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| material_path | Yes | Full path to the material (e.g., '/Game/Materials/MyMaterial.MyMaterial') | |
| to_input_name | Yes | Name of the input pin on the destination expression | |
| from_output_name | Yes | Name of the output pin on the source expression | |
| to_expression_name | Yes | Name of the destination material expression | |
| from_expression_name | Yes | Name of the source material expression |