set_collection_param_default
Set the default value of a scalar or vector parameter in a Material Parameter Collection asset and save the change. Use scalar_value for scalars or [r, g, b, a] for vectors.
Instructions
Set the default of an existing scalar or vector parameter of a Material Parameter Collection asset and save it: a scalar takes scalar_value, a vector takes vector [r, g, b, a]. Errors when neither array has the name or the needed value is missing.
Returns: { collection_path: string, param_name: string, param_type: string, default_set: bool, saved: bool, default_value: number, scalar_value: number, default: object, default_rgba: [number] }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vector | No | New linear color for a vector parameter, as a JSON array [r, g, b, a]; alpha is 1 when only three values are given | |
| param_name | Yes | Name of the existing parameter to update | |
| scalar_value | No | Optional new float value for a scalar parameter | |
| collection_path | Yes | Full /Game path to the MPC asset |