set_mid_vector_param
Override a vector (color) parameter on a transient Material Instance Dynamic by MID path and parameter name; changes apply at once and are not saved.
Instructions
Set a vector (color) parameter override on a transient Material Instance Dynamic (MID), found by object path or name as create_material_instance_dynamic or create_dynamic_material_on_actor return it; it takes effect at once and is never saved. param_name must be a global vector parameter of the MID's material (as get_mid_all_params lists it); any other name is refused and nothing is written. set is the read-back of the new color. Scalars and textures: set_mid_scalar_param, set_mid_texture_param.
Returns: { mid_object_path, param_name, old_value: {r, g, b, a}, new_value: {r, g, b, a}, set }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| b | No | Not read at the top level: the blue component goes in value | |
| g | No | Not read at the top level: the green component goes in value | |
| r | No | Not read at the top level: the red component goes in value | |
| value | Yes | Color object {r, g, b, a}; a missing component is 0, a missing a is 1 | |
| param_name | Yes | Name of a vector parameter of the MID's material | |
| mid_object_path | Yes | Object path of the MID (from create_material_instance_dynamic) |