copy_mid_params_from_source
Copies non-static parameter values from a source material into a transient Material Instance Dynamic (MID), clearing existing overrides first.
Instructions
Copy parameter values from a source material or material instance into a transient Material Instance Dynamic (MID), found by object path or name as create_material_instance_dynamic returns it. The MID's current overrides are cleared first, then every non-static parameter the MID exposes takes the source's value where the source has that parameter; static switches are not copied. Takes effect at once, nothing saved, no undo. Refused, with the MID untouched, when the source is the MID itself or has none of its parameters. copied is measured: every copyable parameter read back on the MID with the source's value. For saved Material Instance Constant assets use copy_material_instance_params.
Returns: { mid_object_path, source_material_path, source_material_name, params_in_source, params_copied, params_not_in_source, mismatched_params, copied }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mid_object_path | Yes | Object path of the MID | |
| source_material_path | Yes | Content path to the source material to copy from |