metasound_set_node_input_default
Sets the default literal value for a named MetaSound node input pin, then reads it back to verify and saves the asset.
Instructions
Set the default literal of a named input pin on a concrete node (by node_id from metasound_add_node_by_classname). Reads the value back to verify and saves. Provide exactly one of value (float, default), int_value, bool_value or string_value.
Returns: { asset_path: string, node_id: string, input_name: string, value_type: string, value_set: bool, verified: bool, value_read_back: string, saved: bool }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | No | Float default (optional, used if no other *_value is provided). | |
| node_id | Yes | GUID of the node (from metasound_add_node_by_classname). | |
| int_value | No | Int32 default (optional, mutually exclusive). | |
| bool_value | No | Bool default (optional, mutually exclusive). | |
| input_name | Yes | Name of the node input pin (discover via the node's enumerated inputs). | |
| string_value | No | String default (optional, mutually exclusive). | |
| metasound_path | Yes | Asset path of the MetaSound Source. |