set_material_node_param
Sets one property on a UMaterial expression node by node_id, refuses values that do not parse, marks the material dirty, and returns the read-back value.
Instructions
Write one property of an expression node of a UMaterial asset (not an instance), found by its object name node_id. param_name names the property on every node type (R on Constant, DefaultValue or SliderMax on ScalarParameter, Constant on Constant3Vector and Constant4Vector, DefaultValue on VectorParameter...); ParameterName renames a node that has a parameter name. A value that does not parse for the property is refused and nothing is written. No undo, no save: it runs PostEditChange and marks the material dirty (persist with save_asset). value_after is the property read back. Instances: set_material_instance_param.
Returns: { material: string, node_id: string, param_name: string, value: string, value_after: string }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | No | Text to write: a number for a numeric property, "(R=1,G=0.5,B=0,A=1)", "[1,0.5,0,1]" or "1,0.5,0" for a linear color, the new name for ParameterName, else UE import text for the property; omitted means empty text. | |
| node_id | Yes | Id of the target expression in the material | |
| param_name | Yes | Name of the property to set (e.g. "ParameterName", "R", "DefaultValue") | |
| material_path | Yes | Material asset path |